Description Usage Arguments Value Examples
View source: R/CellType_genes_jitter.R
CellType_genes_jitter is a wrapper function around monocle::plot_genes_jitter() that plots gene expression as jitter plots facet_wrapped by CellType.
1 2 3 |
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. |
A ggplot2 object
1 | gene_barplot("Actb", dat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.