vegan
plot.cca
, plot.decorana
or
ordiplot
.ordihull(ord, groups, display = "sites", draw = c("lines","polygon"),
show.groups, ...)
ordiarrows(ord, groups, levels, replicates, display = "sites",
show.groups, startmark, ...)
ordisegments(ord, groups, levels, replicates, display = "sites",
show.groups, ...)
ordigrid(ord, levels, replicates, display = "sites", ...)
ordispider(ord, groups, display="sites", w = weights(ord, display),
show.groups, ...)
ordiellipse(ord, groups, display="sites", kind = c("sd","se"), conf,
draw = c("lines","polygon"), w = weights(ord, display),
show.groups, ...)
ordicluster(ord, cluster, prune = 0, display = "sites",
w = weights(ord, display), ...)
ordiplot
object.levels
and
replicates
, where levels
gives the number of groups,
and replicates
the number of successive items at the same
groupTRUE
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 astartmark = 1
will draw a circle. For other plotting characters,
see pch
in points
sd
) or
standard deviations of their (weighted) averages (se
) are
used.sd
or se
is multiplied with the
corresponding value found from the Chi-squared distribution with
2df.prune
$>0$, dendrogram will be
disconnected.ordihull
draws lines
or
polygon
s for the convex
hulls found by function chull
encircling
the items in the groups. 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.
Function ordispider
draws a `spider' diagram where each point
is connected to the group centroid with
segments
. Weighted centroids are used in the
correspondence analysis methods cca
and
decorana
or if the user gives the weights in the
call. If ordispider
is called with cca
or
rda
result without groups
argument, the function
connects each `WA' scores to the correspoding `LC' score.
Function ordiellipse
draws lines
or
polygon
s for dispersion
ellipse
using either standard deviation of
point scores or standard error of the (weighted) average of
scores, and the (weighted) correlation defines the direction of the
principal axis of the ellipse. The function requires package
ellipsoidhull
of package
Function ordicluster
overlays a cluster dendrogram onto
ordination. It needs the result from a hierarchic clustering such as
hclust
or agnes
, or other
with a similar structure. Function ordicluster
connects
cluster centroids to each other with line
segments
. Function uses centroids of all points in the
clusters, and is therefore similar to average linkage methods.
arrows
,
lines
, segments
and
polygon
. You can pass
parameters to scores
as well. Other underlying functions
are chull
and ellipse
.data(dune)
data(dune.env)
mod <- cca(dune ~ Moisture, dune.env)
attach(dune.env)
plot(mod, type="n")
ordihull(mod, Moisture)
ordispider(mod, col="red")
plot(mod, type = "p", display="sites")
ordicluster(mod, hclust(vegdist(dune)), prune=3, col = "blue")
# The following is not executed automatically because it needs
# a non-standard library `ellipse'.
ordiellipse(mod, Moisture, kind="se", level=0.95, lwd=2, col="blue")
Run the code above in your browser using DataLab