Generate an interactive MDS plot using Plotly based on expression data.
mdsPlottly(x, Sample, Group, title, palette, top, gene.selection)
A Plotly object ( "plotly::ggplotly ") representing the interactive MDS scatterplot.
A DGEList object from edgeR.
Character vector. Sample names corresponding to columns of "x ".
Factor or character vector. Group or condition for each sample.
Character. Title for the plot.
Character. Name of a discrete palette from the "paletteer " package.
Integer. Number of top most variable genes (by logFC) to include in MDS.
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.