Description Usage Arguments Value Author(s) Examples
View source: R/plotUseAvailability.R
Plots the relative densities of ones (presence, a.k.a, "use") versus zeroes (background, a.k.a, "availability") for each environmental predictor in a training data frame. This plot helps to understand the relationship between use and availability in order to make informed decisions during variable selection. When for a given variable the density of use peaks over low availability it indicates that the species selects those values of a variable at a higher rate than what is expected by chance. On the other hand, variables with a very high overlap between use and availability will likely turn out to have a low predictive value during SDM fitting.
1 2 3 4 5 6 7 8 9 | plotUseAvailability(
x,
presence.column = "presence",
variables = NULL,
exclude.variables = NULL,
axis.text.size = 6,
legend.text.size = 12,
strip.text.size = 10
)
|
x |
A data frame with a presence column with 1 indicating presence and 0 indicating background, and columns with predictor values. |
presence.column |
Character, name of the presence column. |
variables |
Character vector, names of the columns representing predictors. If |
exclude.variables |
Character vector, variables to exclude from the analysis. |
axis.text.size |
Numeric, size of the axis labels. |
legend.text.size |
Numeric, size of the legend labels. |
strip.text.size |
Numeric, size of the panel names. |
A ggplot object.
Blas Benito <blasbenito@gmail.com>
1 2 3 4 5 6 7 | data("virtualSpeciesPB")
x <- plotUseAvailability(
x = virtualSpeciesPB,
presence.column = "presence",
variables = NULL,
exclude.variables = c("x", "y")
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.