[R] need means on all boxplots, but only half of them got that

S Ellison S.Ellison at LGCGroup.com
Tue May 14 23:20:26 CEST 2013

>boxplot( Daten$weight~interaction(Daten$Dosis,Daten$sex, drop=TRUE))
>means<-tapply( Daten$weight, Daten$Dosis, mean)
>points(means, pch=5, col="red", lwd=5)
> ...only the boxplots for male got that point on them, 
> its really weird because I don't think that I separated the sex in the codes above
Look again; the boxplot is clearly distinguished by sex.

means<-tapply( Daten$weight, interaction(Daten$Dosis,Daten$sex, drop=TRUE), mean)

S Ellison

This email and any attachments are confidential. Any use...{{dropped:8}}

More information about the R-help mailing list