R/plot_species_richness_interpolated.R
plot_species_richness_interpolated.RdCreate 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
)character vector. with full path of Tiff files who contain probabilities of presence of each species to consider.
character. optional, for display border of country on map, default is NULL.
sf object. optional, inconsistent with `country_name`. Display borders on map, default is NULL.
boolean. Display plot, default is TRUE.
boolean. Save plot in .png format in folder plot, default is FALSE.
boolean. Save species richness in .tif file in folder output, default is FALSE.
terra object. species richness in designated area.