Draws a ridge plot of single cell data (gene expression, metrics, PC scores, etc.)
RidgePlot(
object,
features,
cols = NULL,
idents = NULL,
sort = FALSE,
assay = NULL,
group.by = NULL,
y.max = NULL,
same.y.lims = FALSE,
log = FALSE,
ncol = NULL,
combine = TRUE,
slot = "data",
...
)
Seurat object
Features to plot (gene expression, metrics, PC scores, anything that can be retreived by FetchData)
Colors to use for plotting
Which classes to include in the plot (default is all)
Sort identity classes (on the x-axis) by the average expression of the attribute being potted, can also pass 'increasing' or 'decreasing' to change sort direction
Name of assay to use, defaults to the active assay
Group (color) cells in different ways (for example, orig.ident)
Maximum y axis value
Set all the y-axis limits to the same values
plot the feature axis on log scale
Number of columns if multiple plots are displayed
Combine plots into a single gg object; note that if TRUE; themeing will not work when plotting multiple features
Use non-normalized counts data for plotting
Extra parameters passed on to CombinePlots
A ggplot object
# NOT RUN {
RidgePlot(object = pbmc_small, features = 'PC_1')
# }
Run the code above in your browser using DataLab