Re: [R] Plotting graph problem!!

2011-03-19 Thread andrew456
Yea,i am very new to R. Thanks a lot Jim Lemon! I appreciate it very much!! Hi Andrew, As you seem to be an R newbie and some of the replies may have been cryptic to a newbie, try this: boxplot(a$Life.Expectancies.at.Birth) To explain the above a little bit, when reading in a text file, R

Re: [R] Plotting graph problem!!

2011-03-19 Thread andrew456
Thanks a lot for teaching me!!! By the way,one more question,how do i plot a boxplot of that?? 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

Re: [R] Plotting graph problem!!

2011-03-19 Thread andrew456
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

Re: [R] Plotting graph problem!!

2011-03-19 Thread andrew456
> data1<-read.delim("C:\\Users\\wenyin\\desktop\\Life_Expectancies_2008.txt",header=T) > attach(data1) > names(data1) > table(Life.Expectancies.at.Birth) so this thing showed up: Life.Expectancies.at.Birth 42 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 2 2 1 4

[R] Plotting graph problem!!

2011-03-19 Thread andrew456
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