plot.env_summarized: plot.env_summarized

View source: R/plot.env_summarized.R

plot.env_summarizedR Documentation

plot.env_summarized

Description

Plotting method for env_summarized object

Usage

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

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.

Value

ggplot

See Also

summarize_envelope

Examples

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)


onpoint documentation built on March 7, 2023, 8:04 p.m.