dimension_reduction-matrix-method {cola}R Documentation

Visualize columns after dimension reduction

Description

Visualize columns after dimension reduction

Usage

## S4 method for signature 'matrix'
dimension_reduction(object,
    pch = 16, col = "black", cex = 1, main = "",
    method = c("PCA", "MDS", "t-SNE", "UMAP"),
    control = list(),
    scale_rows = TRUE,
    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.

control

a list of parameters for Rtsne or umap.

pch

shape of points.

col

color of points.

cex

size of points.

main

title of the plot.

scale_rows

whether perform scaling on matrix rows.

internal

internally used.

verbose

whether print messages.

Value

No value is returned.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

# There is no example
NULL


[Package cola version 1.0.0 Index]