After today’s session you will be able to:
ggplot2
dplyr
, tidyr
, base R, etc.
vegan
package!
diversity
and specnumber
vegan
vegan
has some built-in community datasets
vegan
package
specnumber
function in vegan
vegan
is rarefy
sample
to 20)
rowSums(BCI)
and assign it to an objectmin
on that object to identify the single smallest value
sample
to the minimum value you found
vegan
is specaccum
specaccum
on the BCI data and assign it to a new object
ggplot2
will want a dataframe so we need to do some parsing
curve_list
should be whatever you named your species accumulation object
ggplot2
to make a graph with:
theme
elements in ways that spark joy for you
color
to sites
ggplot2
Geometrygeom_errorbar
)
y
= name of column mapped to Y axisg
= name of column to add/subtract from Y axiswidth
= how wide you want the crossbars on the error bars
geom_errorbar
aes
parentheses ymin/ymax should +/- the “sd” column
width
to whatever you’d like