Plot ecological screening of climate exposure
Usage
plot_climniche_priority(
x,
type = c("plane", "map", "both"),
map_value = c("pareto_depth_score", "pareto_rank", "relative_priority"),
max_points = 6000L,
seed = 1L,
title = NULL,
extent = NULL,
degree_labels = c("auto", "none", "hemisphere"),
study_region = NULL,
legend_position = "bottom",
front_group_km = NULL,
front_count_breaks = NULL
)
# S3 method for class 'climniche_priority'
plot(x, ...)Arguments
- x
A
climniche_priorityobject.- type
"plane","map", or"both".- map_value
Map
"pareto_depth_score", the original"pareto_rank", or the legacy alias"relative_priority".- max_points
Target maximum number of cells drawn in the decision plane. Pareto rank 1 is always retained.
- seed
Random seed used when the decision plane is subsampled.
- title
Optional overall title for a combined figure.
- extent
Optional
c(xmin, xmax, ymin, ymax)map extent.- degree_labels
Longitude-latitude label style.
- study_region
Optional study-region boundary accepted by
plot_climniche_map().- legend_position
Legend position for the map.
- front_group_km
Optional maximum great-circle separation (km) within a group of rank-one locations. With a positive distance, the map overlays one diamond per complete-linkage group at its most central member (smallest sum of distances). Area represents the number of locations. Requires a known raster CRS and
sf. The default,NULL, draws no overlay. Grouping affects only the map, not ranks or the decision plane. Pairwise grouping is available for up to 5,000 rank-one locations.- front_count_breaks
Optional positive integer counts for the diamond legend. To compare maps, supply the same breaks with an upper break at least as large as the largest group on either map.
- ...
Additional arguments passed to
plot_climniche_priority()by the S3plot()method.
Examples
sim <- simulate_climniche(n = 400, p = 6, seed = 21)
fit <- fit_climniche(
sim[["current"]],
sim[["future_away"]],
occupied = sim[["occupied"]],
sensitivity = sim[["sensitivity"]]
)
priority <- climniche_priority(fit)
if (requireNamespace("ggplot2", quietly = TRUE)) {
plot_climniche_priority(priority, type = "plane")
}