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
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!
--
View this message in context:
http://www.nabble.co
Peter Alspach
> -Original Message-
> From: r-help-boun...@r-project.org
> [mailto:r-help-boun...@r-project.org] On Behalf Of pfc_ivan
> Sent: Thursday, 29 January 2009 9:04 a.m.
> To: r-help@r-project.org
> Subject: [R] Newbie Question About Histograms
>
>
> He
Hello everyone. Just have a question , cant figure out how to make this
histogram.
I have this table, that i stored in a variable name new.data2. Table looks
like this
Year GeoArea SmpNo Month Gear Maturity Length Age YearC
1989 1 36210 221225 1 1988
1991 1
4 matches
Mail list logo