plot.msr.Rd
\name{plot.msr}
\alias{plot.msr}
\title{Plot a Signed or Vector-Valued Measure}
\description{
Plot a signed measure or vector-valued measure.
}
\usage{
\method{plot}{msr}(x, \dots, add=FALSE,
how=c("image", "contour", "imagecontour"),
main=NULL,
do.plot=TRUE,
multiplot=TRUE)
}
\arguments{
\item{x}{
The signed or vector measure to be plotted.
An object of class \code{"msr"} (see \code{\link{msr}}).
}
\item{\dots}{
Extra arguments passed to \code{\link{Smooth.ppp}}
to control the interpolation of the
continuous density component of \code{x},
or passed to \code{\link{plot.im}} or \code{\link{plot.ppp}}
to control the appearance of the plot.
}
\item{add}{
Logical flag; if \code{TRUE}, the graphics are added to the existing
plot. If \code{FALSE} (the default) a new plot is initialised.
}
\item{how}{
String indicating how to display the continuous density component.
}
\item{main}{
String. Main title for the plot.
}
\item{do.plot}{
Logical value determining whether to actually perform the plotting.
}
\item{multiplot}{
Logical value indicating whether it is permissible to display
a plot with multiple panels (representing different components of
a vector-valued measure, or different types of points in a multitype
measure.)
}
}
\value{
(Invisible) colour map (object of class \code{"colourmap"}) for the
colour image.
}
\details{
This is the \code{plot} method for the class \code{"msr"}.
The continuous density component of \code{x} is interpolated
from the existing data by \code{\link{Smooth.ppp}},
and then displayed as a colour image by \code{\link{plot.im}}.
The discrete atomic component of \code{x} is then superimposed on this
image by plotting the atoms as circles (for positive mass)
or squares (for negative mass) by \code{\link{plot.ppp}}.
To smooth both the discrete and continuous components,
use \code{\link{Smooth.msr}}.
Use the argument \code{clipwin} to restrict the plot to a subset
of the full data.
}
\seealso{
\code{\link{msr}},
\code{\link{Smooth.ppp}},
\code{\link{Smooth.msr}},
\code{\link{plot.im}},
\code{\link{plot.ppp}}
}
\examples{
X <- rpoispp(function(x,y) { exp(3+3*x) })
fit <- ppm(X, ~x+y)
rp <- residuals(fit, type="pearson")
rs <- residuals(fit, type="score")
plot(rp)
plot(rs)
plot(rs, how="contour")
}
\author{\adrian
and \rolf
}
\keyword{spatial}
\keyword{hplot}