Description Usage Arguments Details Note Author(s) See Also Examples
Functions to add arrows, line segments, regular grids of
points. The ordination diagrams can be produced by vegan
plot.cca
, plot.decorana
or
ordiplot
.
1 2 3 4 5 6 | ordiarrows(ord, groups, levels, replicates, order.by, display = "sites",
show.groups, startmark, label = FALSE, ...)
ordisegments(ord, groups, levels, replicates, order.by, display = "sites",
show.groups, label = FALSE, ...)
ordigrid(ord, levels, replicates, display = "sites", lty = c(1,1),
col = c(1,1), lwd = c(1,1), ...)
|
ord |
An ordination object or an |
groups |
Factor giving the groups for which the graphical item is drawn. |
levels, replicates |
Alternatively, regular
groups can be defined with arguments |
order.by |
Order points by increasing order of this variable
within |
display |
Item to displayed. |
show.groups |
Show only given groups. This can be a vector, or
|
label |
Label the |
startmark |
plotting character used to mark the first item. The
default is to use no mark, and for instance, |
col |
Colour of lines in |
lty, lwd |
Line type, line width used for
|
... |
Parameters passed to graphical functions such as
|
Function ordiarrows
draws arrows
and
ordisegments
draws line segments
between
successive items in the groups. Function ordigrid
draws line
segments
both within the groups and for the
corresponding items among the groups.
These functions add graphical items to ordination graph: You must draw a graph first.
Jari Oksanen
The functions pass parameters to basic graphical functions, and
you may wish to change the default values in arrows
,
lines
and segments
. You can pass
parameters to scores
as well.
1 2 3 4 5 6 7 8 9 10 11 12 | example(pyrifos)
mod <- rda(pyrifos)
plot(mod, type = "n")
## Annual succession by ditches
ordiarrows(mod, ditch, label = TRUE)
## Show only control and highest Pyrifos treatment
plot(mod, type = "n")
ordiarrows(mod, ditch, label = TRUE,
show.groups = c("2", "3", "5", "11"))
ordiarrows(mod, ditch, label = TRUE, show = c("6", "9"),
col = 2)
legend("topright", c("Control", "Pyrifos 44"), lty = 1, col = c(1,2))
|
Loading required package: permute
Loading required package: lattice
This is vegan 2.4-3
pyrifs> data(pyrifos)
pyrifs> ditch <- gl(12, 1, length=132)
pyrifs> week <- gl(11, 12, labels=c(-4, -1, 0.1, 1, 2, 4, 8, 12, 15, 19, 24))
pyrifs> dose <- factor(rep(c(0.1, 0, 0, 0.9, 0, 44, 6, 0.1, 44, 0.9, 0, 6), 11))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.