Learn R Programming

meteR (version 1.2)

plot.meteDist: 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

"plot"(x, ptype = c("cdf", "rad"), th.col = "red", lower.tail = TRUE, add.legend = TRUE, add.line = FALSE, ...)

Arguments

x
a meteDist object
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 plot

Details

plot.meteDist automatically extracts the prediction and data (if used in meteESF) from the meteDist object. Additional plotting arguments can be passed to ....

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

Run this code
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')

Run the code above in your browser using DataLab