Learn R Programming

epm (version 1.1.5)

plotSpRange: plot a single species' range

Description

Plot one species' geographic range, as encoded in the epmGrid object.

Usage

plotSpRange(
  x,
  taxon,
  taxonColor = "orange",
  basemap = "worldmap",
  lwd = 0.5,
  alpha = 1,
  use_tmap = FALSE,
  add = FALSE
)

Value

nothing is returned

Arguments

x

object of class epmGrid

taxon

taxon to plot

taxonColor

color for plotting taxon's range

basemap

if 'none', then only the grid is plotted. If 'worldmap', then vector map is plotted. If 'interactive', then the plotting is done via your web browser.

lwd

grid cell border width

alpha

opacity of all colors and borders, ranging from 0 (fully transparent) to 1 (fully opaque)

use_tmap

if false, use sf or terra packages for plotting

add

logical. If TRUE, adds the gridded taxon range to existing plot.

Author

Pascal Title

Examples

Run this code
tamiasEPM

plotSpRange(tamiasEPM, 'Tamias_speciosus', use_tmap = FALSE)

Run the code above in your browser using DataLab