RidgePlot: Single cell ridge plot

Description Usage Arguments Value Examples

View source: R/visualization.R

Description

Draws a ridge plot of single cell data (gene expression, metrics, PC scores, etc.)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
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,
  slot = "data",
  stack = FALSE,
  combine = TRUE,
  fill.by = "feature"
)

Arguments

object

Seurat object

features

Features to plot (gene expression, metrics, PC scores, anything that can be retreived by FetchData)

cols

Colors to use for plotting

idents

Which classes to include in the plot (default is all)

sort

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

assay

Name of assay to use, defaults to the active assay

group.by

Group (color) cells in different ways (for example, orig.ident)

y.max

Maximum y axis value

same.y.lims

Set all the y-axis limits to the same values

log

plot the feature axis on log scale

ncol

Number of columns if multiple plots are displayed

slot

Use non-normalized counts data for plotting

stack

Horizontally stack plots for each feature

combine

Combine plots into a single patchworked ggplot object. If FALSE, return a list of ggplot

fill.by

Color violins/ridges based on either 'feature' or 'ident'

Value

A patchworked ggplot object if combine = TRUE; otherwise, a list of ggplot objects

Examples

1
2
data("pbmc_small")
RidgePlot(object = pbmc_small, features = 'PC_1')

ibseq/scs-analysis documentation built on Feb. 27, 2021, 12:35 a.m.