phy_plotTaxon_scatter: Scatterplot of a taxon

View source: R/phy_plotTaxon_scatter.R

phy_plotTaxon_scatterR Documentation

Scatterplot of a taxon

Description

Make sure the "x" parameter calls a continuous variable

Usage

phy_plotTaxon_scatter(physeq, y, x, colour = NULL, transform = NULL)

Arguments

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

Value

a ggplot2 object

Examples

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")


g-antonello/gautils2 documentation built on Nov. 28, 2022, 9:39 a.m.