sampleMDS: Sample MDS plot

Description Usage Arguments Value

View source: R/pca_mds.R

Description

Produce a MDS plot from a matrix using ggplot2. Based on the limma function.

Usage

1
2
sampleMDS(data, top = nrow(data), groups = colnames(data), plot = TRUE,
  selection = c("pairwise", "common"))

Arguments

data

Matrix of data to plot

top

Number of rows with highest deviance to select for plotting

groups

Vector of groups assigned to sample columns

plot

Boolean, if true return plot, if false return plot data

selection

Select rows in a "pariwise" manner between samples or "common" across all samples

Value

ggplot2 object containing the PCA plot, or the dataframe of plot data


lazappi/RNAtools documentation built on May 20, 2019, 8:26 p.m.