Skip to contents

Plots the mean species accumulation (species-area) curve with a ribbon denoting +/-1 standard deviation across permutations, based on the summary returned by calculate_species_area.

Usage

plot_species_area(sar_data)

Arguments

sar_data

A data frame with columns Sites (number of quadrats sampled), Richness (mean cumulative richness), and SD (standard deviation across permutations).

Value

A ggplot object.

Details

The curve represents expected richness as sampling effort increases; uncertainty is displayed as a semi-transparent ribbon.

Examples

if (FALSE) { # \dontrun{
sar <- calculate_species_area(abund_matrix)
plot_species_area(sar)
} # }