[R] Plotting graph problem!!

andrew456 blurtum at hotmail.com
Sat Mar 19 16:19:54 CET 2011


I assigned the dataset to data1,then i tried typing hist(data1),it says:

Error in hist.default(data1) : 'x' must be numeric

how can I change the Locations to frequency so that it is in numeric form
and I can plot the histogram?








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)


doesn't do what you expect.

(Though often when people say "histogram" they want something else - 
what's with that anyhow?)

Allan



--
View this message in context: http://r.789695.n4.nabble.com/Plotting-graph-problem-tp3389613p3389830.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list