| plot_univariate {romic} | R Documentation | 
Univariate Plot
Description
Create a histogram from a tomic dataset.
Usage
plot_univariate(tomic_table, x_var, color_var = NULL)
Arguments
| 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) | 
Value
A ggplot2 grob
Examples
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)
[Package romic version 1.1.3 Index]