sitestat {nodiv} | R Documentation |
Site statistics of nodiv
data objects
Description
Adds, plots or reads site statistics from objects in the nodiv
package
Usage
add_sitestat(distrib_data, site_stat, site = NULL)
plot_sitestat(distrib_data, x, shape = NULL, type = c("auto",
"points", "grid"), ...)
sitestat(distrib_data, statname = NULL, site = NULL)
Arguments
distrib_data |
An object of type |
site_stat |
A site statistic, such as species richness or mean temperature. This can be a vector or a data.frame. If
|
site |
A character or numeric variable specifying the sites in which to enter or read sitestat |
statname |
The name of a sitestatistic in the |
x |
A variable to plot on sites, can either be a numeric variable, or the name of a
sitestatistic in the |
shape |
A shape file giving a map to use as a background for the plot |
type |
A character vector describing the type of data |
... |
Further arguments to the plotting function |
Value
add_sitestat
returns the object with the new sitestat inside.
sitestat
returns the named sitestatistic.
Author(s)
Michael Krabbe Borregaard