Hi I'd really like to get a bar plot showing the means of my anova data. I have looked everywhere and can only seem to find instructions for 2 way anova's. I basically want to look at the mean condition of my subjects spilt by age, sex and year (as a factor rather than a continuous variable, hence Anova and not Ancova). and want to show it firstly as a bar graph with standard error. I have tried using the following from Mick Crawleys R book:
barplot(tapply(x,list(y,z),mean), beside=T,ylim=c(0,30),col=rainbow(3)) However im not sure its correct for three way, is there another code I should be using or do I need to add an extra bit in to get all the factors? My data is formatted as: Condition, Age, Sex and Year. However when I plot it, all I seem to get is males and females or adults and juveniles, when I need both for example: male adults, male juveniles, female adults, female juveniles. what I was hoping for was condition on the Y axis and year along the X axis and four bars for each year to show mean ci for each sex and age group - if that makes sense. Cheers H [[alternative HTML version deleted]] ______________________________________________ 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.