plot_counts: Plot counts for a single gene

View source: R/plot_counts.R

plot_countsR Documentation

Plot counts for a single gene

Description

Plot counts for a single gene

Usage

plot_counts(
  x,
  intgroup,
  n = 25,
  geom = "jitter",
  ylab = "Log2 counts",
  reorder,
  ncol = NULL,
  scales = "fixed",
  ...
)

Arguments

x

a tibble from top_counts

intgroup

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

n

total number of genes to plot, default 25

geom

geom type, default jitter or point, boxplot and violin

ylab

y-axis label

reorder

level names to reorder factor levels on x-axis

ncol

number of columsn for facet_wrap

scales

scales for facet_wrap, default fixed

...

additional options passed to geom_jitter or other geom

Value

A ggplot

Note

See link{plot_interactions} to plot many genes.

Author(s)

Chris Stubben

Examples

 plot_counts(pasilla$count, "FBgn0033635",  c("type","condition"), title = "Prip")

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