View source: R/get_biplot_data.R
get.biplot.data | R Documentation |
Get all the data required to plot a CCA or RDA biplot in ggplot. Returns a list of data.tables (and one character vector) that can easily be used to create a biplot in ggplot (or the base plot function).
get.biplot.data(smpls, ord, plot.axes = c(1, 2))
smpls |
a data.frame/data.table or the phyloseq object that was used to create the CCA or RDA ordination |
ord |
a cca or rda object (created by cca or capscale from vegan) |
plot.axes |
the CCA/RDA axes you wish to plot (must be integers). Defaults to 1 and 2 |
cca
, capscale
data(example_phyloseq)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.