________________________________________ >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.
Try 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}} ______________________________________________ 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.