ordination_plot: Plot Ordination

View source: R/beta_diversity_fun.R

ordination_plotR Documentation

Plot Ordination

Description

Plot Ordination

Usage

ordination_plot(
  phylo,
  ordination,
  type = "samples",
  color = NULL,
  shape = NULL,
  geom_star = TRUE
)

Arguments

phylo

phyloseq object

ordination

ordination object

type

Plot type. Supported options are c("samples", "sites", "species", "taxa", "biplot", "split", "scree")

color

Map colors based on character string of a sample variable or taxonomic rank

shape

Map shapes based on character string of a sample variable or taxonomic rank

geom_star

boolean. If TRUE create a star plot by drawing segments from group centroid to each points.

Value

ggplot

Examples

data("mice_B6_N")
ordination <- phyloseq::ordinate(mice_B6_N, "NMDS", "bray")
ordination_plot(mice_B6_N, ordination)

ericjcgalvez/MicrobiomeWrangler documentation built on April 14, 2022, 6:33 p.m.