View source: R/visualization.R
barPlot | R Documentation |
Please check barplot_internal
for detailed description of the arguments.
barPlot(
object,
features,
group.by = NULL,
split.by = NULL,
color.use = NULL,
method = c("truncatedMean", "triMean", "median"),
trim = 0.1,
assay = "RNA",
x.lab.rot = FALSE,
ncol = 1,
...
)
object |
seurat object |
features |
Features to plot (gene expression, metrics) |
group.by |
Name of one or more metadata columns to group (color) cells by (for example, orig.ident); pass 'ident' to group by identity class |
split.by |
Name of a metadata column to split plot by; |
color.use |
defining the color for each condition/dataset |
method |
methods for computing the average gene expression per cell group. By default = "truncatedMean", where a value should be assigned to 'trim; |
trim |
the fraction (0 to 0.5) of observations to be trimmed from each end of x before the mean is computed. |
assay |
Name of assay to use, defaults to the active assay |
x.lab.rot |
whether do rotation for the x.tick.label |
ncol |
number of columns to show in the plot |
... |
Extra parameters passed to barplot_internal |
ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.