Skip to contents

plot_map() allows you to generate a colour-coded map of there percent change in species trends for each strata.

Usage

plot_map(
  trends,
  slope = FALSE,
  title = TRUE,
  col_viridis = FALSE,
  species,
  stratify_by,
  select
)

Arguments

trends

List. Trends generated by generate_trends().

slope

Logical. Whether or not to map values of the alternative trend metric (slope of a log-linear regression) if slope = TRUE was used in generate_trends(), through the annual indices. Default FALSE.

title

Logical. Whether or not to include a title with species. Default TRUE.

col_viridis

Logical flag to use "viridis" colour-blind friendly palette. Default is FALSE

species

Defunct. Use title instead

stratify_by

Defunct.

select

Defunct.

Value

spplot object

Examples

# Using the example model for Pacific Wrens...

# Generate the continental and stratum indices
i <- generate_indices(pacific_wren_model)
#> Processing region stratum
#> Processing region continent

# Now generate trends
t <- generate_trends(i)

# Generate the map
map <- plot_map(t)