Create visualizations of per-site accumulation metrics.
Arguments
- x
A
spacc_metricsobject fromspaccMetrics().- metric
Character. Which metric to plot. Default is first metric.
- type
Character. Plot type:
"heatmap"Spatial heatmap colored by metric value
"points"Simple point plot (same as heatmap but clearer name)
"histogram"Distribution of metric values
- point_size
Numeric. Size of points in heatmap. Default 3.
- palette
Character. Color palette for heatmap. One of
"magma"(A),"inferno"(B),"plasma"(C),"viridis"(D, default),"cividis"(E),"rocket"(F),"mako"(G),"turbo"(H). Single letters also accepted.- ...
Additional arguments (unused).
Examples
# \donttest{
coords <- data.frame(x = runif(50), y = runif(50))
species <- matrix(rbinom(50 * 30, 1, 0.3), nrow = 50)
metrics <- spaccMetrics(species, coords, metrics = c("slope_10", "auc"))
plot(metrics, metric = "slope_10", type = "heatmap")
# }