Description Usage Arguments Value Examples
gene_barplot() plots the mean expression of a given gene as a bar plot with standard error bars.
1 2 3 | gene_barplot(genes, cds, group = "genotype", color = "genotype",
facet_wrap = NULL, facet_genes = "cols", plot_trend = F,
color_trend = "orange")
|
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. |
A ggplot2 object
1 | gene_barplot(c("Actb", "Aldoa"), dat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.