get_mds: get_mds

Description Usage Arguments Details Value Author(s) Examples

View source: R/rctutils.R

Description

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

Usage

1
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()].

Details

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

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.

Author(s)

Ryan Thompson, rct@thompsonclan.org

Examples

1
# TODO Steal from plotMDS

jrthompson54/DGE.Tools2 documentation built on May 12, 2021, 8:47 p.m.