PlotHull: Plotting Species Ranges

View source: R/PlotHull.R

PlotHullR Documentation

Plotting Species Ranges

Description

Plots species distribution ranges approximated with CalcRange in the geographic context.

Usage

PlotHull(dat, select = "all", buffer = 1, bgmap,
         col = rgb(255, 0, 0, 10, maxColorValue = 255))

Arguments

dat

a list of 'SpatialPolygons' objects created with CalcRange.

select

a character string indicating which elements of the list to plot. Can be one or multiple species names. Default = “all”.

buffer

numerical. The buffer around the polygon extent when plotting the map.

bgmap

a SpatialPolygonsDataFrame as background map for the plots. Default = landmass.

col

a character string indicating the colour of the polygons. Default is to transparent red.

Details

If type is set to “separate”, set par(ask = T) to see all maps.

Value

A plot or a set of plots.

Note

See https://github.com/azizka/speciesgeocodeR/wiki for more details and tutorials.

Examples

#simulate example occurrences
occ.exmpl<- data.frame(species = sample(letters, size = 250, replace = TRUE),
                       decimallongitude = runif(n = 250, min = 42, max = 51),
                       decimallatitude = runif(n = 250, min = -26, max = -11))


dat <- CalcRange(occ.exmpl, method = "pseudospherical", terrestrial = FALSE)
## Not run: 
PlotHull(dat)

## End(Not run)

azizka/speciesgeocodeR documentation built on Sept. 5, 2023, 3:45 a.m.