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. ______________________________________________ R-help@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.