Description Usage Arguments Value Examples
View source: R/ranges_espace.R
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.
1 2 3 4 |
... |
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).
1 2 3 4 5 6 7 8 9 10 11 | # 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.