Learn R Programming

speciesgeocodeR (version 1.0-4)

MapRichness: Plotting Species Richness in a Set of Polygons

Description

Illustrates the species number per polygon, based on and object of the class spgeoOUT (created by SpGeoCod).

Usage

MapRichness(x, areanames = NA, leg = "continuous", show.occ = F, lin.col = "grey", lwd = 1, ...)

Arguments

x
an object of the class ''spgeoOUT''.
areanames
a character string. If the polygons in the spgeoIN object were derived from a shape file, this column indicates the name of the column used for area names. If the polygons in the spgeoIN object were derived from a text file leave as default (Default = "").
leg
Controls the plot legend and coloring scheme. Must be either “continuous” or “discrete”, (default = continuous).
show.occ
logical. Defines if the occurrence points should be added to the plot (default = F).
lin.col
character string. Defines the colour of polygon borders (default = “grey”).
lwd
numeric. Line width of polygon lines.
...
Arguments to be passed to other methods, such as graphical parameters (see par).

Value

A plotted map.

See Also

RichnessGrid, MapGrid, RangeRichness.

Examples

Run this code
data(lemurs)
data(mdg_poly)

inp <- ReadPoints(lemurs, mdg_poly)
outp <- SpGeoCodH(inp)
MapRichness(outp)

Run the code above in your browser using DataLab