[R] boxplot(list(m[,1],...,m[,c]))
Richard Dybowski
rdybowski at btinternet.com
Wed Jul 4 17:05:24 CEST 2001
Given a matrix m, I would like to obtain a boxplot of the columns of m; in
other words, boxplot(list(m[,1],...,m[,ncol(m)])). At the moment, I am using
colpart <- function(m){
L <- list(rep(0,ncol(m)))
for(i in 1:ncol(m)){
L[[i]] <- m[,i] }
return(L)}
boxplot(colpart(m))
for this purpose. Surely there must be a more eloquent way!
Richard
-------------------------------
Richard Dybowski, 143 Village Way, Pinner, Middlesex HA5 5AA, UK
Tel (mobile): 079 76 25 00 92
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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