Last chance! 50% off unlimited learning
Sale ends in
vegan
plot.cca
, plot.decorana
or
ordiplot
. ordiarrows(ord, groups, levels, replicates, order.by, display = "sites", col = 1, show.groups, startmark, label = FALSE, length = 0.1, ...)
ordisegments(ord, groups, levels, replicates, order.by, display = "sites", col = 1, show.groups, label = FALSE, ...)
ordigrid(ord, levels, replicates, display = "sites", lty = c(1,1), col = c(1,1), lwd = c(1,1), ...)
ordiplot
object. levels
and
replicates
, where levels
gives the number of groups,
and replicates
the number of successive items at the same
group.groups
. Reverse sign of the variable for decreasing
ordering.TRUE
if you want to show items for which condition is
TRUE
. This argument makes it possible to use different
colours and line types for groups. The default is to show all groups. startmark = 1
will draw a circle. For other plotting characters, see pch
in points
. label
borders and
startmark
in ordiarrows
and
ordisegments
. This can be a vector recycled for
groups
. In ordigrid
it can be a vector of length 2
used for levels
and replicates
.level
s and replicate
s in ordigrid
.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.arrows
,
lines
and segments
. You can pass
parameters to scores
as well.
example(pyrifos)
mod <- rda(pyrifos)
plot(mod, type = "n")
## Annual succession by ditches, colour by dose
ordiarrows(mod, ditch, label = TRUE, col = as.numeric(dose))
legend("topright", levels(dose), lty=1, col=1:5, title="Dose")
## 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))
Run the code above in your browser using DataLab