View source: R/Add_to_data_object.R
sitestat | R Documentation |
nodiv
data objects
Adds, plots or reads site statistics from objects in the nodiv
package
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)
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 |
add_sitestat
returns the object with the new sitestat inside.
sitestat
returns the named sitestatistic.
Michael Krabbe Borregaard
distrib_data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.