MapRichness: Plotting Species Richness in a Set of Polygons

Description Usage Arguments Value Note See Also Examples

View source: R/MapRichness.R

Description

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

Usage

1
2
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.

Note

See the speciesgeocodeR tutorial for further information and examples.

See Also

RichnessGrid, MapGrid, RangeRichness.

Examples

1
2
3
4
5
6

Example output

Loading required package: maps
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
class       : SpatialPolygonsDataFrame 
features    : 3 
extent      : 43.19906, 50.50903, -25.64502, -11.85583  (xmin, xmax, ymin, ymax)
coord. ref. : +proj=longlat +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0 
variables   : 6
names       :   ECO_NAME,   ECO_NAME, ident.add, sp.count,      code, ord 
min values  : Dry Forest, Dry Forest,         1,        8, #FF0000FF,   1 
max values  : Shrublands, Shrublands,         3,       24, #FFF000FF,   3 

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