plotPred: Plot Prediction

Description Usage Arguments Value Author(s) See Also Examples

View source: R/plotPred.R

Description

Plot Prediction output.

Usage

1
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

plotPA.

Examples

1
2
3
4
5
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 documentation built on July 17, 2021, 9:06 a.m.