'rda'
autoplot.rda.Rd
Produces a multi-layer ggplot object representing the output of objects produced by rda
.
an object of class "rda"
, the result of a call to rda
numeric; which axes to plot, given as a vector of length 2.
character; which geoms to use for the layers. Can be a vector of
up to length 2, in which case, the first element of geom
will be
used for any site scores (both weighted sum or linear combination scores),
and the second element will be used for species scores. The latter will be
ignored if arrows = TRUE
.
character; which scores to plot as layers
logical; represent species (variables) using vectors?
character or two-element numeric vector; where to position the legend. See theme
for details. Use "none"
to not draw the legend.
character; subtitle for the plot
character; subtitle for the plot
character; caption for the plot
character; label for the y-axis
character; label for the x-axis
General scaling constant to rda
scores. See
scores.rda
for details.
Additional arguments passed to fortify.cca
.
Returns a ggplot object.
TODO
data(dune)
pca <- rda(dune)
autoplot(pca)
## Just the species scores
autoplot(pca, layers = "species")