Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plotPred

Plot Prediction


Description

Plot Prediction output.

Usage

plotPred(map, lt = "", colorramp = NULL, hr = FALSE)

Arguments

map

raster object with the prediction.

lt

character. Legend title, default is an empty string.

colorramp

vector. A custom color ramp given as a vector of colors (see example), default is NULL and uses a blue/red color ramp.

hr

logical, if TRUE produces an output with high resolution, default is FALSE.

Value

A ggplot object.

Author(s)

Sergio Vignali

See Also

Examples

map <- raster::raster(matrix(runif(400, 0, 1), 20, 20))
plotPred(map, lt = "Habitat suitability \ncloglog")
# Custom colors
plotPred(map, lt = "Habitat suitability",
         colorramp = c("#2c7bb6", "#ffffbf", "#d7191c"))

SDMtune

Species Distribution Model Selection

v1.1.4
GPL-3
Authors
Sergio Vignali [aut, cre] (<https://orcid.org/0000-0002-3390-5442>), Arnaud Barras [aut] (<https://orcid.org/0000-0003-0850-6965>), Veronika Braunisch [aut] (<https://orcid.org/0000-0001-7035-4662>), Conservation Biology - University of Bern [fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.