s-news
[Top] [All Lists]

Re: Graphsheet box plots grouping

To: Thom Burnett <Thom.Burnett@cognigencorp.com>, S-News <s-news@lists.biostat.wustl.edu>
Subject: Re: Graphsheet box plots grouping
From: "Richard M. Heiberger" <rmh@temple.edu>
Date: Thu, 25 Aug 2005 14:42:58 -0400
Is this what you are looking for?  If not, please send the list a
working example of what you want and someone will get back to
you with a more efficient way of doing it.

Rich


tmp <- data.frame(age=20+10*rnorm(25),
                  weight=150+15*rnorm(25),
                  id=1:25,
                  group=factor(rep(1:2,c(11,14))))

tmp2 <- data.frame(y=c(tmp$age, tmp$weight),
                   id=rep(tmp$id, 2),
                   group=rep(tmp$group, 2),
                   var=rep(c("age","weight"), c(25,25)))

bwplot(group ~ y | var, data=tmp2,
       between=list(x=2),
       scale=list(x=list(relation="free")))

<Prev in Thread] Current Thread [Next in Thread>