Revision: 1737
http://sourceforge.net/p/r-gregmisc/code/1737
Author: warnes
Date: 2013-10-15 01:47:31 +0000 (Tue, 15 Oct 2013)
Log Message:
-----------
Make lmplot2 manual page from plot.lm.2 manual page.
Added Paths:
-----------
trunk/gplots/man/lmplot2.Rd
Copied: trunk/gplots/man/lmplot2.Rd (from rev 1736, trunk/gplots/man/plot.lm2.Rd)
===================================================================
--- trunk/gplots/man/lmplot2.Rd (rev 0)
+++ trunk/gplots/man/lmplot2.Rd 2013-10-15 01:47:31 UTC (rev 1737)
@@ -0,0 +1,71 @@
+\name{plot.lm2}
+\alias{plot.lm2}
+\title{
+ Plots to assess the goodness of fit for the linear model objects
+}
+\description{
+ Plots to assess the goodness of fit for the linear model objects
+ }
+ \usage{
+ plot.lm2(
+ x,
+ which = 1:5,
+ caption = c("Residuals vs Fitted", "Normal Q-Q plot",
+ "Scale-Location plot", "Cook's distance plot"),
+ panel = panel.smooth,
+ sub.caption = deparse(x$call),
+ main = "",
+ ask = interactive() && nb.fig < length(which)
+ && .Device != "postscript",
+ ...,
+ id.n = 3,
+ labels.id = names(residuals(x)),
+ cex.id = 0.75,
+ band=TRUE,
+ rug=TRUE,
+ width=1/10,
+ max.n=5000
+ )
+}
+\arguments{
+ \item{x}{lm object}
+ \item{which}{Numerical values between 1 and 5, indicating which plots
+ to be shown. The codes are:
+
+ 1- fitted vs residuals plot
+ 2- Normal Q-Q plot
+ 3- Scale-Location plot
+ 4- Cook's distance plot
+ 5- residuals vs each predictor plot
+ }
+ \item{caption}{ Caption for each type of plot}
+ \item{panel}{ function to draw on the existing plot}
+ \item{sub.caption}{ SubCaption for the plots }
+ \item{main}{Main title of the plot}
+ \item{ask}{whether interactive graphics or postscript }
+ \item{\dots}{ parameters passed to \code{plot.lm2}. }
+ \item{id.n}{ integer value, less than or equal to residuals of lm object }
+ \item{labels.id}{Names of the residuals of the lm object}
+ \item{cex.id}{Parameter to control the height of text stringsx}
+ \item{band}{logical vector indicating whether bandplot should also be plotted }
+ \item{rug}{logical vector indicating whether rug should be added to
+ the existing plot }
+ \item{width}{Fraction of the data to use for plot smooths}
+ \item{max.n}{Maximum number of points to display in plots}
+}
+\author{Gregory R. Warnes \email{gr...@wa...} and Nitin
+ Jain \email{nit...@pf...}}
+\examples{
+ctl <- rnorm(100, 4)
+trt <- rnorm(100, 4.5)
+group <- gl(2,100,200, labels=c("Ctl","Trt"))
+weight <- c(ctl, trt)
+wt.err <- rnorm(length(weight), mean=weight, sd=1/2)
+x <- lm(weight ~ group + wt.err)
+
+plot.lm2(x)
+
+plot.lm2(x, which=1, width=1/3)
+plot.lm2(x, which=1:3, widht=1/3)
+}
+\keyword{hplot}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|