50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

iNEXT (version 2.0.3)

ggiNEXT: ggplot2 extension for an iNEXT Object

Description

ggiNEXT the ggplot2 extension for iNEXT Object

Usage

ggiNEXT(x, type = 1, se = TRUE, facet.var = "none", color.var = "order")

Arguments

x
a iNEXT object computed by iNEXT
type
three different plotting type = c(1, 2, 3); 1 means to plot number of individuals or number of samples to diversity; 2 means to plot number of individuals or number of samples to sample coverage; and 3
se
display confidence interval around estimated accumulation curve
facet.var
display subsets of the dataset in different panels with four choices: facet.var = c("none", "order", "site", "both") where "none" means do not split any lay out panels in a grid; "order" means split lay out panels by
color.var
display subsets of the dataset in different colors with four choices: color.var = c("none", "order", "site", "both") where "none" means do not split any color; "order" means split colors by different orders q;

Value

  • a ggplot object

Examples

Run this code
data(spider)
# single abundance-based data
out1 <- iNEXT(spider$Girdled, q=0, datatype="abundance")
ggiNEXT(x=out1, type=1)
ggiNEXT(x=out1, type=2)
ggiNEXT(x=out1, type=3)

# single incidence-based data with multiple order q
data(ant)
size <- round(seq(10, 500, length.out=20))
y <- iNEXT(ant$h500m, q=c(0,1,2), datatype="incidence", size=size, se=FALSE)
ggiNEXT(y, se=FALSE)

# multiple abundance-based data with multiple order q
z <- iNEXT(spider, q=c(0,1,2), datatype="abundance")
ggiNEXT(z, facet.var="site", color.var="order")
ggiNEXT(z, facet.var="both", color.var="both")

Run the code above in your browser using DataLab