[R] plot linear model problem
David Winsemius
dwinsemius at comcast.net
Tue Nov 16 23:06:48 CET 2010
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 fitted values,
>
> or the 1,3,4th graph?
>
> I think I can use plot(test.lm[c(1,3,4)]) before,
>
> but now, it's not working...
>
> Every time, it goes to the end, the only thing I can click is 'next',
> it is impossible to save them individually....
>
> I am using xp sp3, R 2.12.
>
> Thanks!
>
> casper
David Winsemius, MD
West Hartford, CT
More information about the R-help
mailing list