ggiNEXTbeta.link: ggplot2 extension for outcome from 'iNEXT.beta.link'

Description Usage Arguments Value Examples

Description

ggiNEXTbeta.link: ggplot for Interpolation and extrapolation of Beta diversity with order q

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
ggiNEXTbeta.link(
  outcome,
  type = c("B", "D"),
  diversity = "TD",
  scale = "free",
  main = NULL,
  transp = 0.4,
  stript.size = 11,
  text.size = 13
)

Arguments

outcome

the outcome from "iNEXTbeta.link"

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".

main

The title of the plot.

transp

a value between 0 and 1 controlling transparency. transp = 0 is completely transparent, default is 0.4.

measurement

character indicating the label of y-axis.

Value

a figure for Beta diversity or dissimilarity diversity.

a ggplot2 object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
data(Norfolk)
beta1 = iNEXTbeta.link(networks = puerto.rico$data, level = seq(0.5, 1, 0.5), datatype='abundance',q = c(0, 1, 2),
                       diversity = 'TD', nboot = 10, conf = 0.95)
beta2 = iNEXTbeta.link(networks = puerto.rico$data, level = seq(0.5, 1, 0.5), datatype='abundance',q = c(0, 1, 2),
                       diversity = 'PD', nboot = 10, conf = 0.95,
                       row.tree = puerto.rico$row.tree, col.tree = puerto.rico$col.tree)

ggiNEXTbeta.link(beta1,diversity = 'TD', type = 'B')
ggiNEXTbeta.link(beta1,diversity = 'TD', type = 'D')
ggiNEXTbeta.link(beta2,diversity = 'PD', type = 'B')
ggiNEXTbeta.link(beta2,diversity = 'PD', type = 'D')

## End(Not run)

Chunger-Lo/iNEXT.link documentation built on Dec. 17, 2021, 2:05 p.m.