plot.meteDist {meteR} | R Documentation |
Plot METE distributions and associated data
Description
plot.meteDist
plots both the theoretical prediction and data for a
meteDist
object using either a rank or cumulative distribution plot
Usage
## S3 method for class 'meteDist'
plot(x, ptype = c("cdf", "rad"), th.col = "red",
lower.tail = TRUE, add.legend = TRUE, add.line = FALSE, ...)
Arguments
x |
a |
ptype |
type of plot; either "cdf" or "rad" |
th.col |
line color of theoretical prediction |
lower.tail |
logical; choose TRUE to highlight differences between data and theory at low abundance; choose FALSE to highlight differences at high abundance. |
add.legend |
logical; add a legend |
add.line |
add the curve for a fitted model to the existing plot |
... |
arguments to be passed to |
Details
plot.meteDist
automatically extracts the prediction and data (if used
in meteESF
) from the meteDist
object. Additional plotting
arguments can be passed to ...
.
Author(s)
Andy Rominger <ajrominger@gmail.com>, Cory Merow
References
Harte, J. 2011. Maximum entropy and ecology: a theory of abundance, distribution, and energetics. Oxford University Press.
See Also
sad, ipd, ssad, sipd, print.meteDist
Examples
data(arth)
esf1 <- meteESF(spp=arth$spp,
abund=arth$count,
power=arth$mass^(.75),
minE=min(arth$mass^(.75)))
ipd1 <- ipd(esf1)
plot(ipd1)
plot(ipd1, ptype='rad')