plot_interactions: Plot counts for many genes

Description Usage Arguments Value Author(s) Examples

View source: R/plot_interactions.R

Description

Plot counts for many genes

Usage

1
2
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

1
2
3
 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 6, 2020, 12:40 p.m.