Description Usage Arguments Value See Also Examples
Fits environmental variables as vectors (via envfit
) and
smooth surfaces (via ordisurf
) to an ordination diagram.
The figure is faceted if multiple variables are specified.
1 | envtoverlay(PS, covariates, ordmet = "PCA")
|
PS |
(required) A phyloseq object. |
covariates |
(required) A character vector of covariates present in the phyloseq objects sample_data(). |
ordmet |
Ordination method. Options are Principal Component Analysis ("PCA") or Correspondence Analysis ("CA"). Defaults to "PCA". |
A ggplot object.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
library(theseus)
library(phyloseq)
library(ggplot2)
data('WWTP_Impact')
cv <- c('log_NO3N', 'log_PO4')
p.eo <- envtoverlay(WWTP_Impact, covariates=cv)
p.eo
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.