plotTSNE: plotTSNE

Description Usage Arguments Value Examples

View source: R/ascend_plots.R

Description

Generates a 2D TSNE plot using a TSNE matrix generated by the runTSNE function.

Usage

1
plotTSNE(object, Dim1 = 1, Dim2 = 2, group = NULL, density = FALSE)

Arguments

object

An EMSet object that has undergone PCA.

Dim1

Dimension to plot on the x-axis.

Dim2

Dimension to plot on the y-axis.

group

(Optional) Name of the column in colInfo that describe a set of conditions you would like to colour cells by.

density

Vary alpha by density (Default: FALSE)

Value

A ggplot glob that contains a scatter plot.

Examples

1
2
3
4
5
# Load analyzed EMSet
em_set <- ascend::analyzed_set

# Use function to generate plots
tsne_plot <- plotTSNE(em_set, Dim1 = 1, Dim2 = 2, group = "cluster")

IMB-Computational-Genomics-Lab/ascend documentation built on Aug. 29, 2019, 4:10 a.m.