Plots a rank *vs* relative abundance diagram.

## Usage

```
plot_rank(object, ...)
# S4 method for matrix
plot_rank(object, log = NULL, facet = FALSE)
# S4 method for data.frame
plot_rank(object, log = NULL, facet = FALSE)
```

## Arguments

- object
A \(m \times p\)

`numeric`

`matrix`

or`data.frame`

of count data (absolute frequencies giving the number of individuals for each class).- ...
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 ggplot2::ggplot object.

## 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 methods:
`matrigraph()`

,
`plot_bertin()`

,
`plot_diceleraas()`

,
`plot_diversity`

,
`plot_ford()`

,
`plot_heatmap()`

,
`plot_spot()`

,
`seriograph()`

## Examples

```
data("cantabria")
## Plot rank vs abundance
plot_rank(cantabria)
plot_rank(cantabria, facet = TRUE)
```