octav-class: Class "octav" for frequencies in abundance octaves
Description
Data frame of frequencies of entities (usually species) in classes
of logarithm of abundances at base 2 (Preston's octaves).Usage
## S3 method for class 'octav':
lines(x, prop=FALSE, \dots)
## S3 method for class 'octav':
plot(x, prop=FALSE, x.oct=FALSE, par.axis=list(), ...)
## S3 method for class 'octav':
points(x, prop=FALSE, \dots)
Arguments
x
an object of class octav
prop
logical; if TRUE relative frequencies are returned.
x.oct
logical; if TRUE axis labels are octave numbers, if
FALSE upper limit of abundance class are used as labels.
par.axis
list; further graphical parameters for the plot axes.
...
further parameters to be passed to lines, points or plot
functions (except axes in plot, which are set by par.axis.
Objects from the Class
Objects can be created by calls of the form new("octav", ...),
but most often by a call to octav or octavpred.Extends
Class "data.frame", directly.
Class "list", by class "data.frame", distance 2.
Class "oldClass", by class "data.frame", distance 2.
Class "vector", by class "data.frame", distance 3.References
Magurran, A.E. 1989. Ecological diversity and its measurement.
Princenton University Press.
Preston, F.W. 1948. The commonness and rarity of species.
Ecology 29: 254--283.See Also
octav to get an object of the class from a vector
of abundances; octavpred to get an octav object of
predicted abundances from a theoretical distribution;
man page of prestonfit in package vegan for a detailed account of
Preston's octaves and an alternative way to get octaves and model fitting.Examples
Run this code## Creates an octav object from an abundance vector
birds.oc <- octav(birds)
## default plot
plot(birds.oc)
## Using line and argument prop to superpose two data sets
## Fisher's et al moth data and Preston's bird data
moths.oc <- octav(moths)
plot(moths.oc, col=NULL, border=NA, prop=TRUE)
lines(moths.oc, prop=TRUE)
lines(birds.oc, prop=TRUE, col="red")
Run the code above in your browser using DataLab