[R] boxplot(list(m[,1],...,m[,c]))
Martin Maechler
maechler at stat.math.ethz.ch
Wed Jul 4 18:14:26 CEST 2001
>>>>> "Richard" == Richard Dybowski <rdybowski at btinternet.com> writes:
Richard> Given a matrix m, I would like to obtain a boxplot of the
Richard> columns of m; in other words,
Richard> boxplot(list(m[,1],...,m[,ncol(m)])). At the moment, I am
Richard> using
<...>
Richard> for this purpose. Surely there must be a more eloquent way!
Indeed!
It's even in the `Examples' section of help(boxplot) :
Use
boxplot(data.frame(m))
Martin Maechler <maechler at stat.math.ethz.ch> http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum LEO D10 Leonhardstr. 27
ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND
phone: x-41-1-632-3408 fax: ...-1228 <><
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list