Description Usage Arguments Value References See Also Examples
View source: R/gammaAccum-divtable.R
For an example of its use see Figure 4D-F of Scofield et al. (2012).
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, ...)
|
g |
Object of class |
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 |
xlab, ylab, col, bty, lwd, bg |
Options passed to |
pch |
Plotting character used for mean gamma values accumulated,
see |
pch.gamma |
Plotting character used for total gamma value,
|
... |
Additional options passed to |
Nothing returned
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.
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
##
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.