Re: [R] Newbie Question About Histograms

2009-01-28 Thread Eik Vettorazzi
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

Re: [R] Newbie Question About Histograms

2009-01-28 Thread pfc_ivan
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

Re: [R] Newbie Question About Histograms

2009-01-28 Thread Peter Alspach
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

[R] Newbie Question About Histograms

2009-01-28 Thread pfc_ivan
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