spatstat (version 1.41-1)

plot.leverage.ppm: Plot Leverage Function

Description

Plots a leverage function that has been computed by leverage.ppm.

Usage

## S3 method for class 'leverage.ppm':
plot(x, ..., showcut=TRUE, col.cut=par("fg"))

Arguments

x
Leverage measure (object of class "leverage.ppm") computed by leverage.ppm.
...
Arguments passed to plot.im or contour.im controlling the plot.
showcut
Logical. If TRUE, a contour line is plotted at the level equal to the theoretical mean of the leverage.
col.cut
Optional colour for the contour line.

Value

  • None.

Details

This is the plot method for objects of class "leverage.ppm". These objects are computed by the command leverage.ppm.

Use the argument clipwin to restrict the plot to a subset of the full data.

References

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.

See Also

leverage.ppm

Examples

Run this code
X <- rpoispp(function(x,y) { exp(3+3*x) })
   fit <- ppm(X, ~x+y)
   plot(leverage(fit))

Run the code above in your browser using DataCamp Workspace