
ggiNEXT
the ggplot2
extension for iNEXT
ObjectggiNEXT(x, type = 1, se = TRUE, facet.var = "none", color.var = "order")
iNEXT
object computed by iNEXT
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
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 bycolor.var = c("none", "order", "site", "both")
where "none"
means do not split any color; "order"
means split colors by different orders q;
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