Hello,
I would like to know if R provides the similar function to produce
the 4-in-1 graph ("Normal Plot of Residuals", "I Chart of
Residuals",
"Histogram of Residuals" & "Residuals vs Fits") as
MiniTab. If do not
have, could anyone please tell me how to produce above-mentioned
individual chart?
Your help is greatly appreciated.
Best Regards,
WeiQiang Li
[[alternative HTML version deleted]]
you could use directly the plot function on an `lm' object, e.g.,
x <- runif(100, -3, 3)
y <- 1 + 2*x + rnorm(100)
m <- lm(y~x)
par(mfrow=c(2,2))
plot(m)
This doesn't produce the "I Chart" you wanted but it gives a very
good
picture about any strange behaviour of the residuals.
I hope it helps.
Best,
Dimitris
----
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven
Address: Kapucijnenvoer 35, Leuven, Belgium
Tel: +32/16/336899
Fax: +32/16/337015
Web: http://www.med.kuleuven.ac.be/biostat/
http://www.student.kuleuven.ac.be/~m0390867/dimitris.htm
----- Original Message -----
From: <WeiQiang.Li at seagate.com>
To: <r-help at stat.math.ethz.ch>
Sent: Monday, February 28, 2005 10:35 AM
Subject: [R] How to plot
> Hello,
>
> I would like to know if R provides the similar function to
> produce
> the 4-in-1 graph ("Normal Plot of Residuals", "I Chart of
> Residuals",
> "Histogram of Residuals" & "Residuals vs Fits") as
MiniTab. If do
> not
> have, could anyone please tell me how to produce above-mentioned
> individual chart?
>
> Your help is greatly appreciated.
>
> Best Regards,
> WeiQiang Li
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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
>
On 28 Feb 2005 at 17:35, WeiQiang.Li at seagate.com wrote:> Hello, > > I would like to know if R provides the similar function to > produce > the 4-in-1 graph ("Normal Plot of Residuals", "I Chart of Residuals", > "Histogram of Residuals" & "Residuals vs Fits") as MiniTab. If do not > have, could anyone please tell me how to produce above-mentioned > individual chart?Hi> x<-rnorm(10) > y<-10*x+5+rnorm(10) > plot(x,y) > fit<-lm(y~x) > par(mfrow=c(2,2)) > qqnorm(resid(fit)) > hist(resid(fit)) > plot(fitted(fit),resid(fit)) >for three plots. You can try to construct I Chart yourself. Go through help page of lm and you can find some other options how to plot your lm result. Cheers Petr> > Your help is greatly appreciated. > > Best Regards, > WeiQiang Li > > [[alternative HTML version deleted]] > > ______________________________________________ > 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.htmlPetr Pikal petr.pikal at precheza.cz