CellType_genes_jitter: Plot gene expression for all CellTypes as jitter plots

Description Usage Arguments Value Examples

View source: R/CellType_genes_jitter.R

Description

CellType_genes_jitter is a wrapper function around monocle::plot_genes_jitter() that plots gene expression as jitter plots facet_wrapped by CellType.

Usage

1
2
3
CellType_genes_jitter(gene_to_plot, cds, cell_size = 0.75, nrow = NULL,
  ncol = 2, color = "genotype", group = "genotype", plot_trend = F,
  relative_expr = F, color_scale = c("Black", "Red"))

Arguments

gene_to_plot

official gene symbol of a gene to plot e.g. "Actb"

cds

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

cell_size

the size (in points) of each cell used in the plot.

nrow

the number of rows used when laying out the panels for each gene's expression.

ncol

the number of columns used when laying out the panels for each gene's expression.

color

the cell attribute (e.g. the column of pData(cds)) to be used to color each cell.

group

the cell attribute (e.g. the column of pData(cds)) to group cells by on the horizontal axis.

plot_trend

whether to plot a trendline tracking the average expression across the horizontal axis.

relative_expr

Whether to transform expression into relative values.

color_scale

a vector of colors to color barplots and error bars with.

Value

A ggplot2 object

Examples

1
gene_barplot("Actb", dat)

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