Plots a rank vs relative abundance diagram.
plot_rank(object, ...)# S4 method for matrix
plot_rank(
object,
log = NULL,
color = NULL,
symbol = FALSE,
main = NULL,
sub = NULL,
ann = graphics::par("ann"),
axes = TRUE,
frame.plot = axes,
panel.first = NULL,
panel.last = NULL,
legend = list(x = "topright"),
...
)
# S4 method for data.frame
plot_rank(
object,
log = NULL,
main = NULL,
sub = NULL,
ann = graphics::par("ann"),
axes = TRUE,
frame.plot = axes,
panel.first = NULL,
panel.last = NULL,
legend = list(x = "topright"),
...
)
plot_rank()
is called for its side-effects: it results in a graphic
being displayed (invisibly returns object
).
A \(m \times p\) numeric
matrix
or
data.frame
of count data (absolute frequencies giving the number of
individuals for each category, i.e. a contingency table). A data.frame
will be coerced to a numeric
matrix
via data.matrix()
.
Further graphical parameters.
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).
A vector of colors (will be mapped to the rownames of object
).
If color
is a named a named vector, then the colors will be associated
with the rownames of object
. Ignored if set to FALSE
.
A specification for the line type (will be mapped to
the rownames of object
). If symbol
is a named a named vector, then the
line types will be associated with the rownames of object
.
Ignored if set to FALSE
.
A character
string giving a main title for the plot.
A character
string giving a subtitle for the plot.
A logical
scalar: should the default annotation (title and x,
y and z axis labels) appear on the plot?
A logical
scalar: should axes be drawn on the plot?
A logical
scalar: should a box be drawn around the
plot?
An an expression
to be evaluated after the plot axes are
set up but before any plotting takes place. This can be useful for drawing
background grids.
An expression
to be evaluated after plotting has taken
place but before the axes, title and box are added.
A list
of additional arguments to be passed to
graphics::legend()
; names of the list are used as argument names.
If NULL
, no legend is displayed.
N. Frerebeau
Magurran, A. E. (1988). Ecological Diversity and its Measurement. Princeton, NJ: Princeton University Press. tools:::Rd_expr_doi("10.1007/978-94-015-7358-0").
Other plot methods:
matrigraph()
,
plot_bertin()
,
plot_diceleraas()
,
plot_ford()
,
plot_heatmap()
,
plot_spot()
,
seriograph()
## Data from Conkey 1980, Kintigh 1989
data("cantabria")
## Plot rank vs abundance
plot_rank(cantabria)
## Change graphical parameters
plot_rank(cantabria, color = color("bright"), symbol = 15:19)
Run the code above in your browser using DataLab