plotbeta: plot beta diversity

Description Usage Arguments Value Author(s) Examples

View source: R/plot.R

Description

plot beta diversity

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
plotbeta(
  physeq,
  group,
  shape = NULL,
  distance = "bray",
  method = "PCoA",
  color = NULL,
  size = 3,
  ellipse = FALSE
)

Arguments

physeq

A phyloseq object containing merged information of abundance, taxonomic assignment, sample data including the measured variables and categorical information of the samples, and / or phylogenetic tree if available.

group

(Required). Character string specifying name of a categorical variable that is preferred for grouping the information. information.

shape

shape(Optional) Character string specifying shape of a categorical variable

distance

A string character specifying dissimilarity index to be used in calculating pairwise distances (Default index is "bray".). "unifrac","wunifrac","manhattan", "euclidean", "canberra", "bray", "kulczynski", "jaccard", "gower", "altGower", "morisita", "horn", "mountford", "raup" , "binomial", "chao", "cao" or "mahalanobis".

method

A character string specifying ordination method. All methods available to the ordinate function of phyloseq are acceptable here as well.

color

user defined color for group

size

the point size

ellipse

draw ellipse or not

Value

ggplot2 object

Author(s)

Kai Guo

Examples

1
2
3
4
5
{
data("Physeq")
phy<-normalize(physeq)
plotbeta(phy,group="SampleType")
}

microbial documentation built on Nov. 1, 2021, 5:08 p.m.