"plot"(x, ..., add=FALSE, how=c("image", "contour", "imagecontour"), main=NULL, do.plot=TRUE, multiplot=TRUE)
"msr"
(see msr
).
Smooth.ppp
to control the interpolation of the
continuous density component of x
,
or passed to plot.im
or plot.ppp
to control the appearance of the plot.
TRUE
, the graphics are added to the existing
plot. If FALSE
(the default) a new plot is initialised.
"colourmap"
) for the
colour image.
plot
method for the class "msr"
.
The continuous density component of x
is interpolated
from the existing data by Smooth.ppp
,
and then displayed as a colour image by plot.im
. The discrete atomic component of x
is then superimposed on this
image by plotting the atoms as circles (for positive mass)
or squares (for negative mass) by plot.ppp
.
To smooth both the discrete and continuous components,
use Smooth.msr
.
Use the argument clipwin
to restrict the plot to a subset
of the full data.
msr
,
Smooth.ppp
,
Smooth.msr
,
plot.im
,
plot.ppp
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")
Run the code above in your browser using DataLab