View source: R/ranges_espace.R
ranges_espace | R Documentation |
ranges_espace generates a three dimensional comparison of
distributional ranges for a species created using distinct functions of
rangemap
, to visualize them in environmental conditions.
ranges_espace(..., add_occurrences = TRUE, variables, do_pca = FALSE, max_background = 10000, occurrence_color = "blue", range_colors = NULL, alpha = 0.6, legend = TRUE, verbose = TRUE)
... |
one or more objects of class |
add_occurrences |
(logical) if |
variables |
a RasterStack object of at least 3 environmental variables
that will be used to represent the environmental space. If more than 3
variables are provided, the first ones will be used, unless |
do_pca |
(logical) whether to summarize all variables using a principal component analysis. Default = FALSE. |
max_background |
(numeric) maximum number of data from variables to be used for representing the environmental space. Default = 10000. |
occurrence_color |
color for occurrence records in environmental space. |
range_colors |
vector of colors for the ranges to be represented. If
|
alpha |
(numeric) degree of opacity for plotting species ranges. Default = 0.6. |
legend |
(logical) if |
verbose |
(logical) whether or not to print messages about the process. Default = TRUE. |
A figure showing distributional ranges of a species represented in environmental space (3 dimensions).
# example data data("buffer_range", package = "rangemap") data("cxhull_range", package = "rangemap") vars <- raster::stack(system.file("extdata", "variables.tif", package = "rangemap")) names(vars) <- c("bio5", "bio6", "bio13", "bio14") ## comparison ranges_espace(buffer_range, cxhull_range, variables = vars, add_occurrences = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.