get_mds: Get a table of MDS values, with proper column names.

View source: R/limma_utils.R

get_mdsR Documentation

Get a table of MDS values, with proper column names.

Description

This runs limma::plotMDS(), but suppresses the generation of the plot and instead returns the MDS dimensions in a matrix.

Usage

get_mds(x, k, ...)

Arguments

x

The object to run limma::plotMDS() on.

k

The number of MDS dimensions to return. If not specified, the maximum possible number will be returned.

...

Additional arguments to limma::plotMDS().

Value

A matrix with k columns, and ncol(x) rows containing the MDS dimensions, with each column named "DimN", where N is the number of that dimension.

Examples


# TODO Steal from plotMDS


DarwinAwardWinner/rctutils documentation built on July 22, 2022, 5:19 a.m.