| To: | susan@stats.ucl.ac.uk |
|---|---|
| Subject: | Re: clustered boxplots |
| From: | Chuck Cleland <ccleland@optonline.net> |
| Date: | Fri, 14 May 2004 03:12:09 -0400 |
| Cc: | s-news@lists.biostat.wustl.edu |
| In-reply-to: | <3555.213.105.65.61.1084476410.squirrel@egon.stats.ucl.ac.uk> |
| References: | <3555.213.105.65.61.1084476410.squirrel@egon.stats.ucl.ac.uk> |
| User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040421 |
Susan:
How about something like this?
mydata <- data.frame(Y1 = rnorm(30), Y2 = rnorm(30),
Y3 = rnorm(30),
GROUP = rep(c("A", "B", "C"), c(10,10,10)))
par(mfrow=c(1,3))
boxplot(split(mydata$Y1, mydata$GROUP)); title("Y1")
boxplot(split(mydata$Y2, mydata$GROUP)); title("Y2")
boxplot(split(mydata$Y3, mydata$GROUP)); title("Y3")
hope this helps,
Chuck Cleland
susan@stats.ucl.ac.uk wrote:
I am trying to do a boxplot of 3 outcomes ( for 3 groups) on the same graph and having some trouble. My data is of the form y2, y2, y3 are vectors and x is vecots with the groups. Can anyone point me in the right direction. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 452-1424 (M, W, F) fax: (917) 438-0894 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Problem when using neural network for prediction., Liaw, Andy |
|---|---|
| Next by Date: | PhD Studentship, Pedram Sendi |
| Previous by Thread: | clustered boxplots, susan |
| Next by Thread: | Re: clustered boxplots, Aldi Kraja |
| Indexes: | [Date] [Thread] [Top] [All Lists] |