seq_plot: Prepare an 'im' or 'SpatRaster' object for plotting with...

View source: R/seq_plot.R

seq_plotR Documentation

Prepare an 'im' or 'SpatRaster' object for plotting with sequential color palette

Description

Internal function to convert 'im' object or 'SpatRaster' object to values readable by image.plot function within the plot_perturb function.

Usage

seq_plot(input, cols, thresh_up = NULL, digits = 1)

Arguments

input

An object of class 'im' or 'SpatRaster' from the perlrren function.

cols

Character string of length three (3) specifying the colors for plotting: 1) presence, 2) neither, and 3) absence from the plot_obs function.

thresh_up

Numeric. The upper value to concatenate the color key. The default (NULL) uses the maximum value from input.

digits

Integer. The number of significant digits for the labels using the round function (default is 1).

Value

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.


Waller-SUSAN/envi documentation built on Nov. 8, 2024, 12:35 a.m.