Learn R Programming

palm (version 1.1.5)

plot.palm: Plotting an estimated Palm intensity function.

Description

Plots a fitted Palm intensity function from an object returned by fit.ns.

Usage

# S3 method for palm
plot(x, xlim = NULL, ylim = NULL, show.empirical = TRUE, breaks = 50, ...)

Arguments

x

A fitted model from fit.ns.

xlim

Numeric vector giving the x-coordinate range.

ylim

Numeric vector giving the y-coordinate range.

show.empirical

Logical, if TRUE the empirical Palm intensity is also plotted.

breaks

The number of breakpoints between cells for the empirical Palm intensity.

...

Other parameters (for S3 generic compatibility).

Examples

Run this code
## Fit model.
fit <- fit.ns(example.2D, lims = rbind(c(0, 1), c(0, 1)), R = 0.5)
## Plot fitted Palm intensity.
plot(fit)

Run the code above in your browser using DataLab