ordilabel {vegan} | R Documentation |
Function ordilabel
is similar to text
, but the text is on an
opaque label. This can help in crowded ordination plots: you still cannot see
all text labels, but at least the uppermost are readable. Argument priority
helps to make the most important labels visible.
ordilabel(x, display, labels, choices = c(1, 2), priority, cex = 0.8, fill = "white", border = NULL, ...)
x |
An ordination object an any object known to scores . |
display |
Kind of scores displayed (passed to scores ). |
labels |
Optional text used in plots. If this is not given, the text is found from the ordination object. |
choices |
Axes shown (passed to scores ). |
priority |
Vector of the same length as the number of labels. The items with high priority will be plotted uppermost. |
cex |
Character expansion for the text (passed to text ). |
fill |
Background colour of the labels (the col argument of
polygon ). |
border |
The colour and visibilit of the border of the label as defined in
polygon ). |
... |
Other arguments (passed to text ). |
The function may be useful with crowded ordination plots, in particular together with
argument priority
. You will not see all text labels, but at least some are
readable. Other alternatives to crowded plots are
identify.ordiplot
, orditorp
and orditkplot
.
Jari Oksanen
scores
, polygon
, text
. The function is
modelled after s.label
in ade4 package.
data(dune) ord <- cca(dune) plot(ord, type = "n") ordilabel(ord, dis="sites", cex=1.2, font=3, fill="hotpink", col="blue") ## You may prefer separate plots, but here species as well ordilabel(ord, dis="sp", font=2, priority=colSums(dune))