[R] Newbie Question About Histograms
Eik Vettorazzi
E.Vettorazzi at uke.uni-hamburg.de
Wed Jan 28 23:24:12 CET 2009
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!
>
More information about the R-help
mailing list