[R] Plotting graph problem!!
andrew456
blurtum at hotmail.com
Sun Mar 20 04:10:39 CET 2011
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 does
some silent substitutions, like sticking full stops (.) in where there
were spaces in the field labels. The dollar sign operator means "return
the list element of "a" - a data frame column in this case - that has
the name after the dollar sign. That gives the "boxplot" function a
vector of numeric values and it knows what to do. These things are so
familiar to most of us that we don't bother to explain them. You will
probably encounter more of these little mysteries as you progress with
R. Good luck.
Jim
--
View this message in context: http://r.789695.n4.nabble.com/Plotting-graph-problem-tp3389613p3390600.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list