Learn R Programming

romic (version 1.1.3)

plot_univariate: Univariate Plot

Description

Create a histogram from a tomic dataset.

Usage

plot_univariate(tomic_table, x_var, color_var = NULL)

Value

A ggplot2 grob

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)

Examples

Run this code
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)

Run the code above in your browser using DataLab