[R] Plotting graph problem!!

Allan Engelhardt allane at cybaea.com
Sat Mar 19 16:47:43 CET 2011


On 19/03/11 15:04, Allan Engelhardt wrote:
> You should probably tell us which part of
>
> a<- 
> read.csv("http://r.789695.n4.nabble.com/file/n3389613/Life_Expectancies_2008.csv")
> hist(a)
Should be hist(a$Life.Expectancies.at.Birth), of course.  Sorry.
>
>
> doesn't do what you expect.
>
> (Though often when people say "histogram" they want something else - 
> what's with that anyhow?)
>
> Allan
>
> On 19/03/11 13:10, andrew456 wrote:
>> http://r.789695.n4.nabble.com/file/n3389613/Life_Expectancies_2008.csv
>> Life_Expectancies_2008.csv
>>
>> I am trying to plot a histogram base on the file i uploaded above. I am
>> facing a trouble in sorting out the frequency of the life 
>> expectancies. I
>> wanted to plot a graph of life expectancies at birth versus 
>> frequency,but i
>> have no idea how to change the locations into frequencies taking the 
>> range
>> of life expectancies at birth from 40 to 90. I tried using
>> table(Life.Expectancies.at.Birth) to show the frequencies of each 
>> number and
>> I do not know how to continue.
>>
>> -- 
>> View this message in context: 
>> http://r.789695.n4.nabble.com/Plotting-graph-problem-tp3389613p3389613.html
>> Sent from the R help mailing list archive at Nabble.com.
>>
>> ______________________________________________
>> R-help at 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.



More information about the R-help mailing list