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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.