[R] Plotting graph problem!!

David Winsemius dwinsemius at comcast.net
Sat Mar 19 15:33:19 CET 2011


On Mar 19, 2011, at 9:10 AM, 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.

You should show how you turned that data into an R object first. Then  
someone may offer a hint to take the next step in your homework.

-- 

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list