dimension_reduction-matrix-method: Visualize columns after dimension reduction

Description Usage Arguments Value Author(s) Examples

Description

Visualize columns after dimension reduction

Usage

1
2
3
4
5
6
7
## S4 method for signature 'matrix'
dimension_reduction(object,
    pch = 16, col = "black", cex = 1, main = "",
    method = c("PCA", "MDS", "t-SNE", "UMAP"),
    pc = NULL, control = list(),
    scale_rows = TRUE, nr = 5000,
    internal = FALSE, verbose = TRUE)

Arguments

object

A numeric matrix.

method

Which method to reduce the dimension of the data. MDS uses cmdscale, PCA uses prcomp. t-SNE uses Rtsne. UMAP uses umap.

pc

Which two principle components to visualize

control

A list of parameters for Rtsne or umap.

pch

Ahape of points.

col

Color of points.

cex

Aize of points.

main

Title of the plot.

scale_rows

Whether perform scaling on matrix rows.

nr

If number of matrix rows is larger than this value, random nr rows are used.

internal

Internally used.

verbose

Whether print messages.

Value

No value is returned.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

1
2
# There is no example
NULL

cola documentation built on Nov. 8, 2020, 8:12 p.m.