plot.spgeoOUT: Plot Method for SpgeoOUT Objects

Description Usage Arguments Details See Also Examples

View source: R/plot.spgeoOUT.R

Description

plot.spgeoOUT is the plotting method for objects of the class spgeoOUT. Depending on the plottype argument the function can be used to get an overview over the data or plot all elements of the object.

Usage

1
2
3
4
## S3 method for class 'spgeoOUT'
plot(x,  plottype = "summary", plotout = F,
                        mode = c("percent", "total"),
			moreborders = F, areanames = NULL, ...)

Arguments

x

an object of the class spgeoOUT

plottype

a character string. Controls which data shall be plotted. Default is to “summary”. See details for more information.

plotout

logical. If TRUE, no user-input is needed between the plots (par(ask = FALSE)), if FALSE, user input is needed to browse between plots (par(ask = TRUE)).

mode

a character string. Can be “percent” or “total” controls if percentage or total is shown for plottype = “species”. Default is “percent”.

moreborders

logical. If TRUE additional borders are added to the maps. Default is FALSE.

areanames

character. character string. If the polygons of the spgeoOUT object were derived from a shape file, this column indicates the name of the column used for area names. See the SpeciesgeocodeR documentation for more information, if the polygons of the spgeoOUT object were derived from a text file leave as default (Default = "").

...

arguments to be passed to methods, such as graphical parameters (see par).

Details

The output will be different depending on the plottype argument. plottype = “summary”: a map with all occurrence points and polygons (the red points were not classified to any polygon), the species number for all polygons, and if available, a heatplot visualizing the coexistence matrix; plottype = “species”: a bar chart for each input species showing the number of occurrences in each polygon; plottype = “polygons”: a bar chart for each input-polygon showing the number of occurrences for each species in the polygon; plottype = “speciesrichness”: a bar chart showing species number per polygon; plottype = “coexistence”: a heatplot visualizing the coexistence matrix. The heatcolors code for the percent of occurrences that are shared (per rows); plottype = “mapspecies”: one map per species showing all occurrence points in all polygons; plottype = “mappolygons”: a series of maps, showing each polygon and its close environment, with all samples classified to this polygon. Species are color-coded; plottype = “mapunclassified”: a map with all sample points that could not be classified to any polygon; plottype = “mapall”: a map of all occurrence points in the object.

See Also

summary.spgeoOUT, SpGeoCodH

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
data(lemurs)
data(mdg_poly)

inp <- ReadPoints(lemurs, mdg_poly)
outp <- SpGeoCodH(inp)
plot(outp)
plot(outp, plottype = "species")
plot(outp, plottype = "polygons")
plot(outp, plottype = "speciesrichness")
plot(outp, plottype = "coexistence")
plot(outp, plottype = "mapspecies")
plot(outp, plottype = "mappolygons")
plot(outp, plottype = "mapunclassified")
plot(outp, plottype = "mapall")

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