ggiNEXTBetaDiv: ggplot for Beta diversity

ggiNEXTBetaDivR Documentation

ggplot for Beta diversity

Description

ggiNEXTBetaDiv: ggplot for Interpolation and extrapolation of Beta diversity with order q

Usage

ggiNEXTBetaDiv(output, type = "B", scale = "free")

Arguments

output

the output from iNEXTBetaDiv

type

selection of plot type : type = 'B' for plotting the gamma, alpha, and beta diversity ; type = 'D' for plotting 4 turnover dissimilarities.

scale

Are scales shared across all facets ("fixed"), or do they vary across rows ("free_x"), columns ("free_y"), or both rows and columns ("free")? Default is "free".

Value

a figure for Beta diversity or dissimilarity diversity.

Examples

## abundance data & coverage-based
data(beetle_abu)
output1 = iNEXTBetaDiv(data = beetle_abu, datatype = 'abundance', 
                       nboot = 20, conf = 0.95)

ggiNEXTBetaDiv(output1, type = 'B', scale = 'free')
ggiNEXTBetaDiv(output1, type = 'D', scale = 'free')


## incidence data & coverage-based
data(beetle_inc)
output2 = iNEXTBetaDiv(data = beetle_inc, datatype = 'incidence_raw', 
                       nboot = 20, conf = 0.95)

ggiNEXTBetaDiv(output2, type = 'B', scale = 'free')
ggiNEXTBetaDiv(output2, type = 'D', scale = 'free')


 ## abundance data & size-based
data(beetle_abu)
output3 = iNEXTBetaDiv(data = beetle_abu, datatype = 'abundance', base = 'size', 
                       nboot = 20, conf = 0.95)
ggiNEXTBetaDiv(output3, scale = 'free')


## incidence data & size-based
data(beetle_inc)
output4 = iNEXTBetaDiv(data = beetle_inc, datatype = 'incidence_raw', base = 'size', 
                       nboot = 20, conf = 0.95)
ggiNEXTBetaDiv(output4, scale = 'free')



KaiHsiangHu/iNEXT.BetaDiv documentation built on Sept. 17, 2022, 4:15 p.m.