Re: [R] {ggplot2} Adding Mean to (grouped) Boxplot.

2009-11-26 Thread Peng Cai
Hi Dennis, Thanks for your reply. Answers are below: On Thu, Nov 26, 2009 at 4:14 PM, Dennis Murphy wrote: > Two questions: > (1) Do you want monthly means (averaged over groups), group means > (averaged over > months), overall average, other??? > I need mean (of nail) for each tre

[R] {ggplot2} Adding Mean to (grouped) Boxplot.

2009-11-26 Thread Peng Cai
Hi R Users, I am using following R code to plot a "grouped boxplot". I'm hoping if I can add MEAN to these boxplots. Data is copied below and attached as text file. install.packages("ggplot2") library(ggplot2) dta<-read.table("Sample.txt",header=T) attach(dta) p <- ggplot(dta, aes(factor(month),