| plot_ordination_pq | R Documentation |
A wrapper of plot_ordination with vegan distance matrix
plot_ordination_pq(
physeq,
method = "robust.aitchison",
ordination_method = "NMDS",
add_envfit = FALSE,
envfit_fact = NULL,
envfit_pval = 1,
envfit_arrow_mult = 1,
envfit_text_size = 3,
envfit_col = "black",
...
)
physeq |
(required) a |
method |
(string, default "robust.aitchison") The distance method to use from vegan::vegdist(). See ?vegan::vegdist for more details. |
ordination_method |
(string, default "NMDS") The ordination method to use in phyloseq::ordinate(). See ?phyloseq::ordinate for more details. |
add_envfit |
(logical, default FALSE) If TRUE, overlay environmental
vectors (and factor centroids) fitted to the ordination using
|
envfit_fact |
(default NULL) A character vector of variable names from
|
envfit_pval |
(float, default 1) Only environmental variables with an
|
envfit_arrow_mult |
(float, default 1) A multiplier applied to the environmental arrow lengths, to scale them for readability. |
envfit_text_size |
(float, default 3) Text size for the environmental variable labels. |
envfit_col |
(default "black") Color of the environmental arrows, centroids and labels. |
... |
Additional arguments passed on to phyloseq::plot_ordination() |
Basically a wrapper of phyloseq::plot_ordination() to use aitchison and
robust.aitchison distances from vegan package.
A ggplot2 object
Adrien Taudière
vegan::envfit(), phyloseq::plot_ordination()
library(patchwork)
plot_ordination_pq(data_fungi_mini, method = "robust.aitchison", color = "Height") +
plot_ordination_pq(data_fungi_mini, method = "bray", color = "Height")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.