Create plot with species richness with optional sf border.

plot_species_richness_interpolated(
  list_theta_path,
  country_name = NULL,
  country_sf = NULL,
  display_plot = TRUE,
  save_plot = FALSE,
  save_tif = FALSE
)

Arguments

list_theta_path

character vector. with full path of Tiff files who contain probabilities of presence of each species to consider.

country_name

character. optional, for display border of country on map, default is NULL.

country_sf

sf object. optional, inconsistent with `country_name`. Display borders on map, default is NULL.

display_plot

boolean. Display plot, default is TRUE.

save_plot

boolean. Save plot in .png format in folder plot, default is FALSE.

save_tif

boolean. Save species richness in .tif file in folder output, default is FALSE.

Value

terra object. species richness in designated area.