1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
% File nlme/man/plot.augPred.Rd
% Part of the nlme package for R
% Distributed under GPL 2 or later: see nlme/LICENCE
% $Id: plot.augPred.Rd,v 1.8.2.1 2003/04/17 22:28:45 bates Exp $
\name{plot.augPred}
\title{Plot an augPred Object}
\usage{
\method{plot}{augPred}(x, key, grid, \dots)
}
\alias{plot.augPred}
\arguments{
\item{x}{an object of class \code{augPred}.}
\item{key}{an optional logical value, or list. If \code{TRUE}, a legend
is included at the top of the plot indicating which symbols (colors)
correspond to which prediction levels. If \code{FALSE}, no legend
is included. If given as a list, \code{key} is passed down as an
argument to the \code{trellis} function generating the plots
(\code{xyplot}). Defaults to \code{TRUE}.}
\item{grid}{an optional logical value indicating whether a grid should
be added to plot. Default is \code{FALSE}.}
\item{\dots}{optional arguments passed down to the \code{trellis}
function generating the plots.}
}
\description{
A Trellis \code{xyplot} of predictions versus the primary covariate is
generated, with a different panel for each value of the grouping
factor. Predicted values are joined by lines, with
different line types (colors) being used for each level of
grouping. Original observations are represented by circles.
}
\value{
A Trellis plot of predictions versus the primary covariate, with panels
determined by the grouping factor.
}
\author{Jose Pinheiro \email{Jose.Pinheiro@pharma.novartis.com} and Douglas Bates \email{bates@stat.wisc.edu}}
\seealso{\code{\link{augPred}}, \code{\link[lattice]{xyplot}}}
\examples{
fm1 <- lme(Orthodont)
plot(augPred(fm1, level = 0:1, length.out = 2))
}
\keyword{models}
|