Learn R Programming

inDAGO (version 1.0.0)

mdsPlot: mdsPlot

Description

Generate a multidimensional scaling (MDS) plot based on expression data.

Usage

mdsPlot(
  x,
  Sample,
  Group,
  title,
  palette,
  maxOverlaps,
  sizeLabel,
  top,
  gene.selection
)

Value

A "ggplot " object representing the MDS plot.

Arguments

x

DGEList object from edgeR.

Sample

A character vector of sample labels (one per column in "x ").

Group

A factor or character vector specifying the group/class of each sample.

title

Plot title as a character string.

palette

Name of a palette from the "paletteer " package for coloring groups.

maxOverlaps

Maximum number of overlapping labels allowed by "geom_text_repel ".

sizeLabel

Numeric value for label font size.

top

Integer. Number of top most variable genes to include in MDS.

gene.selection

Method for gene selection: one of "pairwise", "common", or "logFC".

Details

This function performs MDS analysis using limma's "plotMDS() " and visualizes the sample relationships in two dimensions using "ggplot2 " and "ggrepel ".