plotPred | R Documentation |
Plot Prediction output.
plotPred(map, lt = "", colorramp = NULL, hr = FALSE)
map |
rast object with the prediction. |
lt |
character. Legend title. |
colorramp |
vector. A custom colour ramp given as a vector of colours
(see example), default is |
hr |
logical. If |
A ggplot object.
Sergio Vignali
plotPA.
map <- terra::rast(matrix(runif(400, 0, 1),
nrow = 20,
ncol= 20))
plotPred(map,
lt = "Habitat suitability \ncloglog")
# Custom colors
plotPred(map,
lt = "Habitat suitability",
colorramp = c("#2c7bb6", "#ffffbf", "#d7191c"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.