View source: R/phy_plotTaxon_scatter.R
| phy_plotTaxon_scatter | R Documentation | 
Make sure the "x" parameter calls a continuous variable
phy_plotTaxon_scatter(physeq, y, x, colour = NULL, transform = NULL)
| physeq | a phyloseq object | 
| y | the name of the taxon you want to plot (y axis) | 
| x | the name of the trait you want to plot (x axis) | 
| colour | another variable you may want to color your points by | 
| transform | a transformation, all those in the phy_transform are allowed | 
a ggplot2 object
data("enterotype")
enterotype@sam_data$otherVar <- rnorm(n = nsamples(enterotype), mean = 5, sd = 1.5)
phy_plotTaxon_scatter(physeq = enterotype,
                     y = "Rikenella",
                     x = "otherVar",
                     colour = "SeqTech",
                    transform = "clr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.