plot_randomized_pattern: plot_randomized_pattern

Description Usage Arguments Details Examples

View source: R/plot_randomized_pattern.R

Description

Plot randomized pattern

Usage

1
2
3
4
5
6
7
8
plot_randomized_pattern(
  pattern,
  what = "sf",
  probs = c(0.025, 0.975),
  comp_fast = 1000,
  ask = TRUE,
  verbose = TRUE
)

Arguments

pattern

List with reconstructed patterns.

what

Plot summary functions of point patterns (what = "sf") or acutal patterns (what = "pp").

probs

Quantiles of randomized data used for envelope construction.

comp_fast

If pattern contains more points than threshold, summary functions are estimated in a computational fast way.

ask

If TRUE the user is asked to press <RETURN> before second summary function is plotted (only has influence if what = "sf" and method = "spatial").

verbose

Print progress report.

Details

The function plots the pair correlation function and the nearest neighbour function the observed pattern and the reconstructed patterns (as "simulation envelopes".). For large patterns comp_fast = TRUE decreases the computational demand because no edge correction is used and the pair correlation function is estimated based on Ripley's K-function. For more information see estimate_pcf_fast. It is also possible to plot 3 randomized patterns and the observed pattern using what = "pp".

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
pattern_random <- fit_point_process(species_a, n_random = 19, process = "cluster")
plot_randomized_pattern(pattern_random)

plot_randomized_pattern(pattern_random, what = "pp")

## Not run: 
marks_sub <- spatstat::subset.ppp(species_a, select = dbh)
marks_recon <- reconstruct_pattern_marks(pattern_random$randomized[[1]], marks_sub,
n_random = 19, max_runs = 1000)
plot_randomized_pattern(marks_recon)

## End(Not run)

mhesselbarth/SHAR documentation built on Oct. 17, 2020, 8:58 p.m.