plot.meteDist: Plot METE distributions and associated data

Description Usage Arguments Details Author(s) References See Also Examples

View source: R/plot.meteDist.R

Description

plot.meteDist plots both the theoretical prediction and data for a meteDist object using either a rank or cumulative distribution plot

Usage

1
2
3
## 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 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 ....

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

1
2
3
4
5
6
7
8
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')

cmerow/meteR documentation built on May 13, 2019, 8:23 p.m.