Clare Patterson
2012-Apr-18 10:02 UTC
[R] problem with mean.labels=TRUE in plotmeans command (gplots)
I have been using plotmeans() from the gplots package to create graphs, and I would like to display the mean values instead of dots on the graphs. I tried adding mean.labels=TRUE to the command, but the graph displays the dot with the mean value overwritten. Has anyone else encountered this problem? I wondered if this might be a bug, or whether there was some way of working around it. I have put an example below. I am using R version 2.15.0 on a 2008 macbook (using mac os x 10.7.3). x<-1:9 y<-c(rep("a", 3), rep("b", 3), rep("c", 3)) frame<-data.frame(x, y) plotmeans(x~y, data=frame, mean.labels=TRUE, connect=FALSE) [[alternative HTML version deleted]]