Hello,
This is my first post to R-help so forgive me if I'm committing a fatal error 
somehow.  Feel free to let me know.
 
My question is this:  I would like to add a triangle to represent the mean in a 
box plot generated with the bwplot command.   How do I do this?  I am able to 
do this using the boxplot and points command but points does not work with 
bwplot.    If you run the following code in R, you'll see that I'm trying to 
reproduce graphs from method 2 by modifying code from method 1.
 
Thank you,
Surai Jones
 
 
library(lattice)
attach(barley)
 
#method 1
bwplot(yield~year, pch="|") 
 
#method 2
boxplot(yield~year)
mean.values<-tapply(yield,year, mean)
points(1:2, mean.values, pch = 17)


      
        [[alternative HTML version deleted]]

______________________________________________
[email protected] 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.

Reply via email to