View source: R/alpha_diversity.R
ggiNEXT | R Documentation |
ggiNEXT
: the ggplot
extension for iNEXT
Object to plot sample-size- and coverage-based rarefaction/extrapolation curves along with a bridging sample completeness curveAlpha diversity
ggplot2 extension for an iNEXT object
this function focked from the iNEXT package
ggiNEXT
: the ggplot
extension for iNEXT
Object to plot sample-size- and coverage-based rarefaction/extrapolation curves along with a bridging sample completeness curve
ggiNEXT(
x,
type = 1,
se = TRUE,
facet.var = "none",
color.var = "site",
grey = FALSE,
usercolor = NULL
)
x |
an |
type |
three types of plots: sample-size-based rarefaction/extrapolation curve ( |
se |
a logical variable to display confidence interval around the estimated sampling curve. |
facet.var |
create a separate plot for each value of a specified variable:
no separation |
color.var |
create curves in different colors for values of a specified variable:
all curves are in the same color ( |
grey |
a logical variable to display grey and white ggplot2 theme. |
usercolor |
a vector including the color that user define |
... |
other arguments passed on to methods. Not currently used. |
a ggplot2 object
library(iNEXT)
data(spider)
# single-assemblage abundance data
out1 <- iNEXT(spider$Girdled, q = 0, datatype = "abundance")
ggiNEXT(x = out1, type = 1)
ggiNEXT(x = out1, type = 2)
ggiNEXT(x = out1, type = 3)
## Not run:
# single-assemblage incidence data with three orders q
data(ant)
size <- round(seq(10, 500, length.out = 20))
y <- iNEXT(ant$h500m, q = c(0, 1, 2), datatype = "incidence_freq", size = size,
se = FALSE)
ggiNEXT(y, se = FALSE, color.var = "order")
# multiple-assemblage abundance data with three orders q
z <- iNEXT(spider, q = c(0, 1, 2), datatype = "abundance")
myggiNEXT.iNEXT(z, facet.var = "site", color.var = "order")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.