| plot.leverage.ppm {spatstat} | R Documentation |
Generate a pixel image plot, or a perspective plot,
of a leverage function that has been computed by leverage.ppm.
## S3 method for class 'leverage.ppm'
plot(x, ..., showcut=TRUE, col.cut=par("fg"),
args.contour=list(),
multiplot=TRUE)
## S3 method for class 'leverage.ppm'
persp(x, ..., main)
x |
Leverage function (object of class |
... |
Arguments passed to |
showcut |
Logical. If |
col.cut |
Optional colour for the contour line. |
args.contour |
Optional list of arguments passed to
|
multiplot |
Logical value indicating whether it is permissible to display several plot panels. |
main |
Optional main title. |
These functions are the plot and persp methods
for objects of class "leverage.ppm".
Such objects are computed by the command leverage.ppm.
The plot method displays the leverage function
as a colour pixel image using plot.im,
and draws a single contour line at the mean leverage value
using contour.default.
Use the argument clipwin to restrict the plot to a subset
of the full data.
The persp method displays the leverage function as a surface
in perspective view, using persp.im.
Same as for plot.im
and persp.im respectively.
Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner r.turner@auckland.ac.nz and Ege Rubak rubak@math.aau.dk.
Baddeley, A., Chang, Y.M. and Song, Y. (2013) Leverage and influence diagnostics for spatial point process models. Scandinavian Journal of Statistics 40, 86–104.
X <- rpoispp(function(x,y) { exp(3+3*x) })
fit <- ppm(X ~x+y)
lef <- leverage(fit)
plot(lef)
persp(lef)