div_plot | R Documentation |
Internal function to convert 'im' object or 'SpatRaster' object to values readable by image.plot
function within the plot_obs
, plot_predict
, and plot_perturb
functions.
div_plot(
input,
cols,
midpoint = 0,
thresh_up = NULL,
thresh_low = NULL,
digits = 1
)
input |
An object of class 'im' or 'SpatRaster' from the |
cols |
Character string of length three (3) specifying the colors for plotting: 1) presence, 2) neither, and 3) absence from the |
midpoint |
Numeric. The value to center the diverging color palette. |
thresh_up |
Numeric. The upper value to concatenate the color key. The default (NULL) uses the maximum value from |
thresh_low |
Numeric. The lower value to concatenate the color key. The default (NULL) uses the minimum value from |
digits |
Integer. The number of significant digits for the labels using the |
An object of class 'list'. This is a named list with the following components:
v
An object of class 'vector' for the estimated ecological niche values.
cols
An object of class 'vector', returns diverging color palette values.
breaks
An object of class 'vector', returns diverging color palette breaks.
at
An object of class 'vector', returns legend breaks.
labels
An object of class 'vector', returns legend labels.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.