View source: R/module_gguniv.R
plot_univariate | R Documentation |
Create a histogram from a tomic dataset.
plot_univariate(tomic_table, x_var, color_var = NULL)
tomic_table |
A table taken from a tidy (i.e., augmented measurements) or triple omic dataset |
x_var |
x-axis variable |
color_var |
coloring variable (NULL to suppress coloring) |
A ggplot2 grob
library(dplyr)
brauer_augmented <- brauer_2008_tidy %>%
add_pcs(npcs = 5) %>%
tomic_to("triple_omic")
plot_univariate(brauer_augmented$samples, "PC1", "nutrient")
plot_univariate(brauer_augmented$measurements, "expression", NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.