plot.rd_pat: plot.rd_pat

View source: R/plot.rd_pat.R

plot.rd_patR Documentation

plot.rd_pat

Description

Plot method for rd_pat object

Usage

## S3 method for class 'rd_pat'
plot(
  x,
  what = "sf",
  n = NULL,
  probs = c(0.025, 0.975),
  ask = TRUE,
  verbose = TRUE,
  ...
)

Arguments

x

rd_pat object with randomized patterns.

what

Character specifying to plot summary functions of point patterns (what = "sf") or actual patterns (what = "pp").

n

Integer with number or vector of ids of randomized pattern to plot. See Details section for more information.

probs

Vector with quantiles of randomized data used for envelope construction.

ask

Logical if the user is asked to press <RETURN> before second summary function is plotted (only used if what = "sf").

verbose

Logical if progress report is printed.

...

Not used.

Details

The function plots the pair correlation function and the nearest neighbour function of the observed pattern and the reconstructed patterns (as "simulation envelopes").

It is also possible to plot n randomized patterns and the observed pattern using what = "pp". If n is a single number, n randomized patterns will be sampled to plot. If n is a vector, the corresponding patterns will be plotted.

Value

void

See Also

reconstruct_pattern
fit_point_process

Examples

## Not run: 
pattern_random <- fit_point_process(species_a, n_random = 39)
plot(pattern_random)

pattern_recon <- reconstruct_pattern(species_b, n_random = 19,
max_runs = 1000, method = "hetero")
plot(pattern_recon)

## End(Not run)


r-spatialecology/shar documentation built on March 18, 2024, 2:17 a.m.