Description Usage Arguments Value Examples
creates comparative plots of two species accumulation curves
from information contained in lists obtained with the function
selected_sites_SAC
.
1 2 3 4 5 6 | compare_SAC(SAC_selected_sites, element_1, element_2, col_mean1 = "blue",
col_CI1 = "lightblue", col_mean2 = "gray15",
col_CI2 = "gray65", lty1 = 1, lty2 = 2,
alpha_mean = 0.9, alpha_CI = 0.3,
xlab = "Number of sites", ylab = "Species",
line_for_multiple = TRUE, add_legend = TRUE, ...)
|
SAC_selected_sites |
nested list of " |
element_1 |
(numeric or character) index of position or character
indicator of the first element (type of selection) in
|
element_2 |
(numeric or character) index of position or character
indicator of the second element (type of selection) in
|
col_mean1 |
(character) color for mean value of curve in
|
col_CI1 |
(character) color for confidence interval region for the
curve in |
col_mean2 |
(character) color for mean value of curve in
|
col_CI2 |
(character) color for confidence interval region for the
curve in |
lty1 |
type of line for |
lty2 |
type of line for |
alpha_mean |
(numeric) alpha level for line representing the mean, values from 0 to 1; default = 0.9. Values close to 0 increase transparency. |
alpha_CI |
(numeric) alpha level for the region representing the confidence interval; default = 0.3. |
xlab |
(character) label for x-axis of plot; default = "Number of sites". |
ylab |
(character) label for y-axis of plot; default = "Species". |
line_for_multiple |
(logical) whether to plot SACs only as lines when
multiple objects are in one or more of the internal lists in
|
add_legend |
(logical) whether to add default legend to plot; default = TRUE. |
... |
other arguments to be passed to plot method for objects of class
" |
A comparative plot of two species "specaccum
" objects done based on
what is defined in element_1
and element_2
.
1 2 3 4 5 6 7 8 9 10 | # Data
data("b_pam", package = "biosurvey")
data("m_selection", 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")
compare_SAC(SAC_selected_sites = SACs, element_1 = 1, element_2 = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.