View source: R/plot.env_summarized.R
plot.env_summarized | R Documentation |
Plotting method for env_summarized
object
## S3 method for class 'env_summarized'
plot(
x,
col = c("#97CBDE", "#E1B0B5"),
x_lab = NULL,
y_lab = NULL,
base_size = 10,
label = TRUE,
...
)
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. |
Plotting method for summarized envelope created with summarize_envelope
.
Returns a ggplot
object.
ggplot
summarize_envelope
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.