ordi_plot.rda | R Documentation |
'rda'
Produces a multi-layer ggplot object representing the output of objects produced by rda
.
## S3 method for class 'rda' ordi_plot( object, axes = c(1, 2), geom = c("point", "text"), layers = c("species", "sites", "biplot", "centroids"), arrows = FALSE, legend.position = "none", title = NULL, subtitle = NULL, caption = NULL, ylab, xlab, const, ... )
object |
an object of class |
axes |
numeric; which axes to plot, given as a vector of length 2. |
geom |
character; which geoms to use for the layers. Can be a vector of
up to length 2, in which case, the first element of |
layers |
character; which scores to plot as layers |
arrows |
logical; represent species (variables) using vectors? |
legend.position |
character or two-element numeric vector; where to position the legend. See |
title |
character; subtitle for the plot |
subtitle |
character; subtitle for the plot |
caption |
character; caption for the plot |
ylab |
character; label for the y-axis |
xlab |
character; label for the x-axis |
const |
General scaling constant to |
... |
Additional arguments passed to |
TODO
Returns a ggplot object.
Gavin L. Simpson
require(vegan) data(dune) pca <- ordi_rda(dune) ordi_plot(pca) ## Just the species scores ordi_plot(pca, layers = "species")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.