Raw Message
Message-ID: <4.3.2.7.2.20010704155334.00b5ff00@mail.btinternet.com>
Date: 2001-07-04T15:05:24Z
From: Richard Dybowski
Subject: boxplot(list(m[,1],...,m[,c]))
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._