plotDotplot: Get Seurat dot plot for snap gmat.

View source: R/figure.R

plotDotplotR Documentation

Get Seurat dot plot for snap gmat.

Description

Get Seurat dot plot for snap gmat.

Usage

plotDotplot(
  snap = NULL,
  snapList = NULL,
  cluster = NULL,
  features,
  groupBy = "cluster",
  cellidSep = ".",
  axis.text.x.angle = 30,
  axis.text.x.hjust = 1,
  scaleSizeMin = 4,
  scaleSizeMax = 6,
  scaleColorLow = "blue",
  scaleColorMid = "white",
  scaleColorHigh = "red",
  ...
)

Arguments

snap

snap object, default is NULL

snapList

list of snap object, default is NULL

cluster

vector of characters, integers, or factors must have names, which are the cell ids. Cluster size can be larger than snap or snapList size, but have to make sure all the cells in snap or snapList have the cluster identification.

features

vector of characters, genes for plotting.

cellidSep

characters default is "."

axis.text.x.angle

numeric, default is 30

axis.text.x.hjust

numeric, default is 1

scaleSizeMin

integer, default is 4

scaleSizeMax

integer, default is 6

scaleColorLow

color name, default is "blue"

scaleColorMid

color name, default is "white"

scaleColorHigh

color name, default is "red"

...

used for Seurat::DotPlot function

group.by

characters default is cluster

Value

ggplot object


beyondpie/pureRUtils documentation built on Jan. 10, 2023, 3:22 a.m.