Learn R Programming

phyloseq (version 1.16.2)

cca.phyloseq: Constrained Correspondence Analysis and Redundancy Analysis.

Description

This is the internal function that simplifies getting phyloseq data into the constrained ordination functions, cca and rda. Unlike capscale.phyloseq, the formula argument to these methods is optional, and results in an unconstrained ordination.

Usage

cca.phyloseq(physeq, formula = NULL, method = "CCA", ...)

## S3 method for class 'phyloseq,formula': cca.phyloseq(physeq, formula = NULL, method = "CCA", ...)

## S3 method for class 'otu_table,ANY': cca.phyloseq(physeq, formula = NULL, method = "CCA", ...)

## S3 method for class 'phyloseq,`NULL`': cca.phyloseq(physeq, formula = NULL, method = "CCA", ...)

Arguments

physeq
(Required). Phylogenetic sequencing data (phyloseq-class). The data on which you want to perform the ordination.
formula
(Optional). A formula, specifying the contraining variable(s) format, with variable names corresponding to sample_data (RHS) from within physeq.
method
(Optional). A single character string, specifying "RDA" or "CCA". Default is "CCA".
...
(Optional). Additional named arguments passed to capscale.

Value

  • same output as cca or rda, respectively.

See Also

plot_ordination, rda, cca

Examples

Run this code
#
# cca.phyloseq(physeq, formula, method, ...)

Run the code above in your browser using DataLab