Draws a violin plot of single cell data (gene expression, metrics, PC scores, etc.)
VlnPlot(object, features.plot, ident.include = NULL, nCol = NULL,
do.sort = FALSE, y.max = NULL, same.y.lims = FALSE, size.x.use = 16,
size.y.use = 16, size.title.use = 20, adjust.use = 1,
point.size.use = 1, cols.use = NULL, group.by = NULL, y.log = FALSE,
x.lab.rot = FALSE, y.lab.rot = FALSE, legend.position = "right",
single.legend = TRUE, remove.legend = FALSE, do.return = FALSE,
return.plotlist = FALSE, ...)
Seurat object
Features to plot (gene expression, metrics, PC scores, anything that can be retreived by FetchData)
Which classes to include in the plot (default is all)
Number of columns if multiple plots are displayed
Sort identity classes (on the x-axis) by the average expression of the attribute being potted
Maximum y axis value
Set all the y-axis limits to the same values
X axis title font size
Y axis title font size
Main title font size
Adjust parameter for geom_violin
Point size for geom_violin
Colors to use for plotting
Group (color) cells in different ways (for example, orig.ident)
plot Y axis on log scale
Rotate x-axis labels
Rotate y-axis labels
Position the legend for the plot
Consolidate legend the legend for all plots
Remove the legend from the plot
Return a ggplot2 object (default : FALSE)
Return the list of individual plots instead of compiled plot.
additional parameters to pass to FetchData (for example, use.imputed, use.scaled, use.raw)
By default, no return, only graphical output. If do.return=TRUE, returns a list of ggplot objects.
# NOT RUN {
VlnPlot(object = pbmc_small, features.plot = 'PC1')
# }
Run the code above in your browser using DataLab