Description Usage Arguments Value Examples
View source: R/explore_data_EG.R
Creates a four-panel plot with information of two environmental predictors (at a time) in the region of interest (or region reduced with mask, if used). The two top panels contain the information in geographic space (one predictor per panel). The two panels at the bottom contain information in a 2D environmental space for the two variables.
1 2 3 |
master |
master_matrix object derived from function
|
variable_1 |
(character or numeric) name or position of the first variable (x-axis) to be explored. |
variable_2 |
(character or numeric) name or position of the second variable (y-axis) to be explored (must be different from the first one). |
region_border |
(logical) whether to add region border to the plot. Default = TRUE. |
mask_border |
(logical) whether to add mask border to the plot. Ignored
if mask is not present in |
col_variable1 |
a color palette for |
col_variable2 |
a color palette for |
col_points |
color for points in environmental space. The default, NULL,
uses the 25th color of the default palette for |
col_density |
color palette to represent representation density of
points in environmental space. This palette can be defined using functions
like |
A multi-panel plot showing two of the environmental predictors in the region of interest in both spaces, geographic and environmental.
1 2 3 4 5 6 7 8 9 | # Data
data("m_matrix", package = "biosurvey")
colnames(m_matrix$data_matrix)
# Plot
explore_data_EG(m_matrix, variable_1 = "Mean_temperature",
variable_2 = "Annual_precipitation")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.