get.biplot.data: Extract CCA/RDA biplot data

View source: R/get_biplot_data.R

get.biplot.dataR Documentation

Extract CCA/RDA biplot data

Description

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).

Usage

get.biplot.data(smpls, ord, plot.axes = c(1, 2))

Arguments

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

See Also

cca, capscale

Examples

data(example_phyloseq)

kstagaman/phyloseqCompanion documentation built on Aug. 26, 2022, 5:07 a.m.