View source: R/methods_spgeoOUT.R
plot.spgeoOUT | R Documentation |
The plotting method for objects of the class spgeoOUT. Depending on the type
argument the function can be used to get an overview over the data or plot all elements of the object.
## S3 method for class 'spgeoOUT'
plot(x, type = "summary", mode = "percent", ...)
x |
an object of the class spgeoOUT. |
type |
a character string. Controls which data shall be plotted. Default is to “summary”. See details for more information. |
mode |
a character string. Can be “percent” or “total” controls if percentage or total is shown for |
... |
additional arguments passed to other methods |
The output will be different depending on the type argument. type
= “summary”: a map with all occurrence points and polygons (red points not classified to any polygon), the species number for all polygons, and if available, a heatplot visualizing the coexistence matrix; type
= “species”: a bar chart for each input species showing the number of occurrences in each polygon; type
= “polygons”: a bar chart for each input-polygon showing the number of occurrences for each species in the polygon; type
= “speciesrichness”: a bar chart showing species number per polygon; type
= “mapspecies”: one map per species showing all occurrence points in all polygons; type
= “mappolygons”: a series of maps, showing each polygon and its close environment, with all samples classified to this polygon. Species are color-coded; type
= “mapunclassified”: a map with all sample points that could not be classified to any polygon; type
= “mapall”: a map of all occurrence points in the object.
summary.spgeoOUT
#simulate example occurrences
data(lemurs)
data(mdg_biomes)
outp <- SpGeoCod(lemurs, mdg_biomes, areanames = 'name')
## Not run:
plot(outp)
plot(outp, type = "speciesrichness")
plot(outp, type = "mapall")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.