mdsPlottly | R Documentation |
Generate an interactive MDS plot using Plotly based on expression data.
mdsPlottly(x, Sample, Group, title, palette, top, gene.selection)
x |
A DGEList object from edgeR. |
Sample |
Character vector. Sample names corresponding to columns of "x ". |
Group |
Factor or character vector. Group or condition for each sample. |
title |
Character. Title for the plot. |
palette |
Character. Name of a discrete palette from the "paletteer " package. |
top |
Integer. Number of top most variable genes (by logFC) to include in MDS. |
gene.selection |
Character. Gene selection method: one of ""pairwise" ", ""common" ", or ""logFC" ". |
This function computes multidimensional scaling (MDS) coordinates with limma's "plotMDS() " and then renders an interactive scatterplot via "plotly::ggplotly() ".
Compute MDS on the input data with "limma::plotMDS() ".
Extract eigenvalues and first two dimensions for variance annotation.
Build a ggplot2 scatterplot with axis labels showing percent variance explained.
Convert the ggplot to an interactive Plotly graph.
A Plotly object ( "plotly::ggplotly ") representing the interactive MDS scatterplot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.