Learn R Programming

onpoint (version 1.0.6)

plot.env_summarized: plot.env_summarized

Description

Plotting method for env_summarized object

Usage

# S3 method for env_summarized
plot(
  x,
  col = c("#97CBDE", "#E1B0B5"),
  x_lab = NULL,
  y_lab = NULL,
  base_size = 10,
  label = TRUE,
  ...
)

Value

ggplot

Arguments

x

Random patterns.

col

Colors for areas above and below envelope.

x_lab, y_lab

Labels of x- and y-axis.

base_size

Base size of plot

label

If TRUE the ratios of the area above and below are added to the plot.

...

To be generic for plotting function.

Details

Plotting method for summarized envelope created with summarize_envelope.

Returns a ggplot object.

See Also

summarize_envelope

Examples

Run this code
set.seed(42)
input_pattern <- spatstat.random::rThomas(kappa = 15, scale = 0.05, mu = 5)

cluster_env <- spatstat.explore::envelope(input_pattern, fun = "pcf", nsim = 39,
funargs = list(divisor = "d", correction = "Ripley", stoyan = 0.25))

x <- summarize_envelope(cluster_env)
plot(x)

Run the code above in your browser using DataLab