plot.gamma_accum: Plot the gamma accumulation result from gammaAccum

Description Usage Arguments Value References See Also Examples

View source: R/gammaAccum-divtable.R

Description

For an example of its use see Figure 4D-F of Scofield et al. (2012).

Usage

1
2
3
4
5
6
7
## S3 method for class 'gamma_accum'
plot(g, xmax = length(g$simple.results$mns),
  ymax = max(g$simple.results$mns + g$simple.results$SE), obs.omega = NULL,
  omega.pos = c(0.15, 0.97), xlab = "Number of groups",
  ylab = expression("Accumulated  " * gamma * "  diversity"), pch = 19,
  pch.gamma = 24, col = "black", bty = "L", lwd = 1.5, bg = "white",
  lty = 2, ...)

Arguments

g

Object of class 'gamma_accum' returned by gammaAccum

xmax

Maximum extent of the X-axis in the plot

ymax

Maximum extent of the Y-axis in the plot

obs.omega

If provided, the observed omega value for the data underlying the gamma accumulation curve; this value is added to the plot

omega.pos

If obs.omega is given, the location at which it is plotted, relative to xmax and ymax, in a two-element vector. 1 is added to each dimension.

xlab, ylab, col, bty, lwd, bg

Options passed to plot, lines and/or points

pch

Plotting character used for mean gamma values accumulated, see ?pch

pch.gamma

Plotting character used for total gamma value, ?pch

...

Additional options passed to plot, lines and/or points

Value

Nothing returned

References

Scofield, D. G., Smouse, P. E., Karubian, J. and Sork, V. L. (2012) Use of alpha, beta and gamma diversity measures to characterize seed dispersal by animals. American Naturalist 180:719-732.

See Also

gammaAccum

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## generate random divtable
n.sites <- 5
n.sources <- 10
n.samples <- 160
set.seed(75333)
t <- data.frame(site = sample(n.sites, n.samples, replace = TRUE),
                source = round(runif(n.samples) * n.sources + 0.5))
tab <- as.divtable(table(t))
## generate gamma accumulation results
rga.result = gammaAccum(tab)
## plot gamma accumulation curve
plot(rga.result)
## generate random allele_divtables
##
## plot gamma accumulation curve for allele data
##

douglasgscofield/dispersalDiversity documentation built on March 30, 2021, 9:50 a.m.