Learn R Programming

UNDO (version 1.14.0)

dimension_reduction: Dimension reduction function

Description

When the number of input samples is larger than 2, this function is called to reduce the dimension to 2 by using PCA.

Usage

dimension_reduction(X)

Arguments

X
gene expression data matrix

Value

X
dimenMatrix
the dimension reduction matrix used to recover the mixing matrix for all the samples

Examples

Run this code
X <- matrix(runif(5000),1000,5)
dimenResult <- dimension_reduction(X)

Run the code above in your browser using DataLab