plot_univariate: Univariate Plot

View source: R/module_gguniv.R

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

romic documentation built on Sept. 21, 2023, 9:06 a.m.