[R] Newbie Question About Histograms

pfc_ivan pfc_ivan at hotmail.com
Wed Jan 28 21:03:50 CET 2009


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   362    10   22        1    225   1  1988
1991       1   267    10   10        1    191   1  1990
1991       1   267    10   10        1    202   1  1990
1992       1   305    10    8        1    162   1  1991
1992       1   305    10    8        1    165   1  1991
1992       1   305    10    8        1    166   1  1991
1992       1   305    10    8        1    167   1  1991
1992       1   305    10    8        1    167   1  1991
1992       1   305    10    8        1    169   1  1991
1992       1   305    10    8        1    170   1  1991

Now I need to make a histogram of Length vs YearC. I would guess that Length
would be on the Y-axis and YearC variable would be on X-axis. I have tried
many different combinations with command 'hist' but im always getting error
" 'x' must be numeric " ... I think im getting that error because of the
header which is not numeric. Any help would be appreciated. Thanks guys. 

Ivan.
-- 
View this message in context: http://www.nabble.com/Newbie-Question-About-Histograms-tp21713626p21713626.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list