plotbeta | R Documentation |
plot beta diversity
plotbeta(
physeq,
group,
shape = NULL,
distance = "bray",
method = "PCoA",
color = NULL,
size = 3,
ellipse = FALSE
)
physeq |
A |
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 |
color |
user defined color for group |
size |
the point size |
ellipse |
draw ellipse or not |
ggplot2 object
Kai Guo
{
data("Physeq")
phy<-normalize(physeq)
plotbeta(phy,group="SampleType")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.