Learn R Programming

tabula (version 1.5.1)

plot_line: Line Plot

Description

plot_rank plots a rank vs relative abundance diagram.

Usage

plot_rank(object, ...)

# S4 method for CountMatrix plot_rank(object, log = NULL, facet = TRUE)

# S4 method for AbundanceMatrix plot_rank(object, log = NULL, facet = TRUE)

Arguments

object

An object to be plotted.

...

Further arguments to be passed to internal methods.

log

A character string which contains "x" if the x axis is to be logarithmic, "y" if the y axis is to be logarithmic and "xy" or "yx" if both axes are to be logarithmic (base 10).

facet

A logical scalar: should a matrix of panels defined by case/sample be drawn?

Value

A ggplot object.

Details

TODO

References

Magurran, A. E. (1988). Ecological Diversity and its Measurement. Princeton, NJ: Princeton University Press. DOI: 10.1007/978-94-015-7358-0.

See Also

Other plot: plot_bar, plot_date(), plot_diversity(), plot_matrix, plot_spot()

Examples

Run this code
# NOT RUN {
## Abundance matrix
## Coerce datasets to a count matrix (data from Desachy 2004)
compiegne_count <- as_count(compiegne)

## Plot rank vs abundance
plot_rank(compiegne_count)
plot_rank(compiegne_count, facet = FALSE)
# }

Run the code above in your browser using DataLab