plot_interactions: Plot counts for many genes

View source: R/plot_interactions.R

plot_interactionsR Documentation

Plot counts for many genes

Description

Plot counts for many genes

Usage

plot_interactions(
  x,
  intgroups,
  ylab = "scaled rlog",
  scaled = TRUE,
  n = 40,
  reorder,
  ...
)

Arguments

x

a tibble from top_counts

intgroups

two column names in attr(x, "colData") to use for grouping

ylab

y-axis label

scaled

scale counts

n

total number of genes to plot

reorder

level names to reorder factor levels on x-axis

...

additional options like ncol or nrow passed to facet_wrap

Value

A ggplot

Author(s)

Chris Stubben

Examples

 x <- top_counts( pasilla$res, pasilla$rlog, top=25)
 # no interaction from single or paired end as expected
 plot_interactions(x,  c("condition", "type"))

HuntsmanCancerInstitute/hciR documentation built on March 26, 2024, 3:09 a.m.