Learn R Programming

spatstat.local (version 4.1-5)

plot.locppm: Plot a Locally Fitted Poisson or Gibbs Model

Description

Plot an object of class "locppm" representing a locally-fitted Poisson or Gibbs point process model.

Usage

# S3 method for locppm
plot(x, ..., what = "cg", which = NULL)

# S3 method for locppm contour(x, ..., what = "cg", which = NULL)

Value

NULL.

Arguments

x

A locally-fitted Poisson or Gibbs point process model (object of class "locppm").

...

Arguments passed to plot.ssf to control the plot.

what

What quantity to display. A character string. The default is to display the fitted coefficient vectors.

which

Which component(s) of the vector-valued quantity to display. An index or index vector.

Author

Adrian Baddeley Adrian.Baddeley@curtin.edu.au.

Details

These are methods for the generic commands plot and contour, for the class "locppm".

The argument what specifies what quantity will be displayed:

"cg"Fitted coefficients of local model
"vg"Local variance matrix for Gibbs model
"vh"Local variance matrix for homogeneous model
"tg"\(t\)-statistics based on "coefs" and "vg"

Typically these quantities are vector-valued (matrices are converted to vectors). The argument which, if present, specifies which elements of the vector are displayed. It may be any kind of index for a numeric vector.

The plotting is performed by plot.ssf.

References

Baddeley, A. (2017) Local composite likelihood for spatial point patterns. Spatial Statistics, In press. DOI: 10.1016/j.spasta.2017.03.001

Baddeley, A., Rubak, E. and Turner, R. (2015) Spatial Point Patterns: Methodology and Applications with R. Chapman and Hall/CRC Press.

See Also

locppm, methods.locppm, plot, plot.default

Examples

Run this code
   fit <- locppm(swedishpines, ~1, sigma=9, nd=20,
             vcalc="hessian", locations="coarse")
   plot(fit)  
   plot(fit, what="Vg")  

Run the code above in your browser using DataLab