Skip to contents

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"
)

# S3 method for class 'climniche_priority'
plot(x, ...)

Arguments

x

A climniche_priority object.

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.

...

Additional arguments passed to plot_climniche_priority() by the S3 plot() method.

Value

A ggplot object, a patchwork object, or a named list of plots when patchwork is unavailable.

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")
}