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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
\name{plot.quadrattest}
\alias{plot.quadrattest}
\title{
Display the result of a quadrat counting test.
}
\description{
Given the result of a quadrat counting test,
graphically display the quadrats that were used, the
observed and expected counts, and the residual in each quadrat.
}
\usage{
\method{plot}{quadrattest}(x, ..., textargs=list())
}
\arguments{
\item{x}{
Object of class \code{"quadrattest"} containing the result
of \code{\link{quadrat.test}}.
}
\item{\dots}{
Additional arguments passed to \code{\link[spatstat.geom]{plot.tess}} to
control the display of the quadrats.
}
\item{textargs}{
List of additional arguments passed to
\code{\link[graphics]{text.default}}
to control the appearance of the text.
}
}
\details{
This is the plot method for objects
of class \code{"quadrattest"}. Such an object is produced by
\code{\link{quadrat.test}} and represents the result of
a \eqn{\chi^2}{chi^2} test for a spatial point pattern.
The quadrats are first plotted using \code{\link[spatstat.geom]{plot.tess}}.
Then in each quadrat, the observed and expected counts
and the Pearson residual are displayed as text using
\code{\link[graphics]{text.default}}.
Observed count is displayed at top left; expected count at top right;
and Pearson residual at bottom.
}
\value{
Null.
}
\examples{
plot(quadrat.test(swedishpines, 3))
}
\seealso{
\code{\link{quadrat.test}},
\code{\link[spatstat.geom]{plot.tess}},
\code{\link[graphics]{text.default}},
\code{\link[spatstat.geom]{plot.quadratcount}}
}
\author{\adrian
and \rolf
}
\keyword{spatial}
\keyword{htest}
\keyword{hplot}
\concept{Goodness-of-fit}
|