Learn R Programming

tabula (version 1.0.0)

plotRank: Rank vs abundance plot

Description

Plots a rank vs relative abundance diagram.

Usage

plotRank(object, ...)

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

# S4 method for FrequencyMatrix plotRank(object, log = NULL, facet = TRUE)

Arguments

object

An object to be plotted.

...

Further arguments passed to other 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?

Details

Note that rows are scaled to 0-1 (frequencies).

See Also

Other plot: plotBar, plotMatrix, plotSpot

Examples

Run this code
# NOT RUN {
# Coerce dataset to abundance matrix
# Data from Desachy 2004
count <- as(compiegne, "CountMatrix")
freq <- as(boves, "FrequencyMatrix")

# Plot rank vs abundance
plotRank(count)
plotRank(count, log = "xy")

# Plot rank vs abundance
plotRank(freq, facet = FALSE)
plotRank(freq, facet = FALSE, log = "xy")
# }

Run the code above in your browser using DataLab