[R] plot linear model problem

Andrew Miles rstuff.miles at gmail.com
Tue Nov 16 23:09:35 CET 2010


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)
>
> 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, 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
> -- 
> View this message in context: http://r.789695.n4.nabble.com/plot-linear-model-problem-tp3045763p3045763.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list