[R] plotmeans in trellis view?
Sam Albers
tonightsthenight at gmail.com
Tue Apr 27 00:58:52 CEST 2010
I'm not sure about "plotmeans" but this is usually the way I plot means with
lattice:
library(lattice)
x <- runif(48, 2, 70)
data <- data.frame(x)
data$factor1 <- factor(c("A", "B", "C", "D"))
data$factor2 <- factor(c("X", "Y", "Z"))
data.mean <- with(data, aggregate(data$x, by=list(factor1=factor1,
factor2=factor2), mean))
with(data.mean, xyplot(x~factor1 | factor2))
Is this sort of what you were looking for?
HTH,
Sam
--
View this message in context: http://r.789695.n4.nabble.com/plotmeans-in-trellis-view-tp2065860p2065945.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list