View source: R/selected_sites_SAC.R
selected_sites_SAC | R Documentation |
Creates species accumulation curves for each set of selected
sites contained in elements of PAM_subset
that contain information of
species incidence (presence-absence).
selected_sites_SAC(PAM_subset, selection_type = "all", method = "exact", ...)
PAM_subset |
object of class PAM_subset obtained using the function
|
selection_type |
type of selection to be considered when creating SAC
for elements in |
method |
(character) species accumulation method to be passed to
function |
... |
other arguments to be passed to function
|
Important details about the process performed to obtain each of the SACs can
be seen in the help for function specaccum
.
A list of species accumulation curves (SACs, "specaccum
" objects)
for all sets of selected sites according to option defined in
selection_type
.
# Data
b_pam <- read_PAM(system.file("extdata/b_pam.rds",
package = "biosurvey"))
m_selection <- read_master(system.file("extdata/m_selection.rds",
package = "biosurvey"))
# Subsetting base PAM according to selections
sub_pam_all <- subset_PAM(b_pam, m_selection, selection_type = "all")
SACs <- selected_sites_SAC(PAM_subset = sub_pam_all, selection_type = "all")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.