PlotHull: Plotting Species Ranges

Description Usage Arguments Details Value Examples

View source: R/PlotHull.R

Description

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

Usage

1
2
3
4
PlotHull(dat, xlim = c(-180, 180), ylim = c(-90, 90),
         col = rgb(255, 0, 0, 50, maxColorValue = 255),
	 border = rgb(255, 0, 0, 50, maxColorValue = 255),
	 type = "overlay", select = "all", ...)

Arguments

dat

a list of ‘SpatialPolygons’ objects created with CalcRange.

xlim

vector indicating the x-axis plotting limits. Default is c(-180, 180).

ylim

a vector indicating the y-axis plotting limits. Default = c(-90, 90).

col

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

border

a character string indicating the color of the polygon borders. Default is to transparent red.

type

a character string indicating if all range polygons in the input file shall be overlaid or plotted on separate plots. Must be “seperate” or “all”. Default is to “all” (overlay).

select

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

...

additional arguments passed to plot.

Details

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

Value

A plot or a set of plots.

Examples

1
2
3
4
5
data("lemurs_in")
dat <- CalcRange(data.frame(lemurs_in$identifier,
                            lemurs_in$species_coordinates),
                 value = "shape")
PlotHull(dat, xlim = c(-130, -100), ylim = c(30,60))

Example output

Loading required package: maps
Warning messages:
1: In CalcRange(data.frame(lemurs_in$identifier, lemurs_in$species_coordinates),  :
  177 points were excluded due to duplicated coordinate
2: In CalcRange(data.frame(lemurs_in$identifier, lemurs_in$species_coordinates),  :
  the following species have less than 3 occurrence, values set to NA:
 Daubentonia madagascariensis
 Eulemur collaris
 Eulemur rufifrons
 Eulemur rufus
 Eulemur sanfordi
 Lepilemur septentrionalis
 Microcebus griseorufus
 Microcebus lehilahytsara
 Microcebus ravelobensis
 Propithecus candidus
 Propithecus coronatus
 Propithecus deckenii
 Propithecus tattersalli

speciesgeocodeR documentation built on May 30, 2017, 12:34 a.m.