How about
> dta<-read.table("clipboard",header=T)
> means<-aggregate(dta$Length,by=list(YearC=dta$YearC),FUN=mean)
> barplot(means[,2],names.arg=means[,1])
you may have a look at ?barplot to see (lots of) options for fine tuning
the plot.
hth.
pfc_ivan schrieb:
Also I forgot to say that The Y-axis values for each YearC would be the mean
value of all the Lenghts that happen in that YearC. Basically I cant figure
out how to put the mean values of Lengths for each YearC on Y axis.
Thanks in advance!
______________________________________________
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.