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
|
% $Id: plot.ACF.Rd,v 1.9 2002/04/16 14:28:53 bates Exp $
\name{plot.ACF}
\title{Plot an ACF Object}
\usage{
\method{plot}{ACF}(x, alpha, xlab, ylab, grid, \dots)
}
\alias{plot.ACF}
\arguments{
\item{x}{an object inheriting from class \code{ACF},
consisting of a data frame with two columns named \code{lag} and
\code{ACF}, representing the autocorrelation values and the
corresponding lags.
}
\item{alpha}{an optional numeric value with the significance level for
testing if the autocorrelations are zero. Lines corresponding to the
lower and upper critical values for a test of level \code{alpha} are
added to the plot. Default is \code{0}, in which case no lines are
plotted.
}
\item{xlab,ylab}{optional character strings with the x- and y-axis
labels. Default respectively to \code{"Lag"} and
\code{"Autocorrelation"}.
}
\item{grid}{an optional logical value indicating whether a grid should
be added to plot. Default is \code{FALSE}.}
\item{\dots}{optional arguments passed to the \code{xyplot} function.}
}
\description{
an \code{xyplot} of the autocorrelations versus the lags, with
\code{type = "h"}, is produced. If \code{alpha > 0}, curves
representing the critical limits for a two-sided test of level
\code{alpha} for the autocorrelations are added to the plot.
}
\value{
an \code{xyplot} Trellis plot.
}
\author{Jose Pinheiro \email{Jose.Pinheiro@pharma.novartis.com} and Douglas Bates \email{bates@stat.wisc.edu}}
\seealso{\code{\link{ACF}}, \code{\link[lattice]{xyplot}}}
\examples{
fm1 <- lme(follicles ~ sin(2*pi*Time) + cos(2*pi*Time), Ovary)
plot(ACF(fm1, maxLag = 10), alpha = 0.01)
}
\keyword{models}
|