Skip to content
Back to formatted view

Raw Message

Message-ID: <88EAF3512A55DF46B06B1954AEF73F740655A1B4@dc1ex2.air.org>
Date: 2004-11-09T12:35:13Z
From: Doran, Harold
Subject: no doubt a dumb question, but..

It would work if you modified as follows:

plot(lm(Girth~Height))

Or alternatively,

fm1<-lm(Girth~Height);plot(fm1)

Harold

-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Dr. John R. Vokey
Sent: Monday, November 08, 2004 10:56 PM
To: r-help at stat.math.ethz.ch
Subject: [R] no doubt a dumb question, but..

Yes, I am a newbie at R, but it is not the complex commands in R that
have me baffled, but simple data commands.  For example, why does
something like:

 > plot(Girth ~ Height)

*not* work after a command that allegedly loads the data:

 > data(trees)

with the error message:

Error in eval(expr, envir, enclos) : Object "Girth" not found

but does work after the command:

 > attach(trees)

?

- JRV
--
There are 10 kinds of people:  those who understand binary, and those
who don't

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html