Hi all,
Say I fit a linear model, and saved it as 'test.lm'
Then if I use plot(test.lm)
it gives me 4 graphs
How do I ask for a 'subset' of it??
say just want the 1st graph,
the residual vs fitted values,
or the 1,3,4th graph?
I think I can use plot(test.lm[c(1,3,4)]) before,
but now,
On Nov 16, 2010, at 5:01 PM, casperyc wrote:
Hi all,
Say I fit a linear model, and saved it as 'test.lm'
Then if I use plot(test.lm)
it gives me 4 graphs
How do I ask for a 'subset' of it??
?plot.lm # The answer is in the first sentence.
say just want the 1st graph,
the residual vs
There may be an easier way to do this, but you could always just do it
the long way.
Ex.
plot(residuals(test.lm)~fitted.values(test.lm))
Andrew Miles
On Nov 16, 2010, at 5:01 PM, casperyc wrote:
Hi all,
Say I fit a linear model, and saved it as 'test.lm'
Then if I use plot(test.lm)
Thank you both.
casper
--
View this message in context:
http://r.789695.n4.nabble.com/plot-linear-model-problem-tp3045763p3045932.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
4 matches
Mail list logo