Learn R Programming

Seurat (version 2.1.0)

ColorTSNESplit: Color tSNE Plot Based on Split

Description

Returns a tSNE plot colored based on whether the cells fall in clusters to the left or to the right of a node split in the cluster tree.

Usage

ColorTSNESplit(object, node, color1 = "red", color2 = "blue",
  color3 = "gray", ...)

Arguments

object

Seurat object

node

Node in cluster tree on which to base the split

color1

Color for the left side of the split

color2

Color for the right side of the split

color3

Color for all other cells

...

Arguments passed on to TSNEPlot

do.label

FALSE by default. If TRUE, plots an alternate view where the center of each cluster is labeled

pt.size

Set the point size

label.size

Set the size of the text labels

cells.use

Vector of cell names to use in the plot.

colors.use

Manually set the color palette to use for the points

Value

Returns a tSNE plot

Examples

Run this code
# NOT RUN {
pbmc_small
PlotClusterTree(pbmc_small)
ColorTSNESplit(pbmc_small, node = 6)

# }

Run the code above in your browser using DataLab