gene_barplot: Plot mean gene expression as bar plot

Description Usage Arguments Value Examples

Description

gene_barplot() plots the mean expression of a given gene as a bar plot with standard error bars.

Usage

1
2
3
gene_barplot(genes, cds, group = "genotype", color = "genotype",
  facet_wrap = NULL, facet_genes = "cols", plot_trend = F,
  color_trend = "orange")

Arguments

genes

a vector of gene name(s) to plot e.g. c("Actb", "Aldoa")

cds

a CellDataSet object e.g. used in the monocle package

group

column name in pData(cds) to group the bar plots by on the horizontal axis.

color

column name in pData(cds) to color the bar plots with.

facet_wrap

a column in pData(cds) to facet_wrap the plots with.

facet_genes

only used if facet_wrap is NULL and there are multiple genes being plotted; if set to "cols", will facet genes into columns; otherwise will facet genes into rows

plot_trend

logical;whether to plot a trend line across groups in plot(s).

color_trend

color to use for trend line.

Value

A ggplot2 object

Examples

1
gene_barplot(c("Actb", "Aldoa"), dat)

jacobheng/cellwrangler documentation built on Aug. 12, 2019, 6:49 a.m.