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
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
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
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
On 19/03/11 13:10,
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
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 4 1
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-
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 be
On 03/20/2011 04:33 AM, andrew456 wrote:
Thanks a lot for teaching me!!! By the way,one more question,how do i plot a
boxplot of that??
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
9 matches
Mail list logo