MDSplot | R Documentation |
This function computes and plots multidimensional scaling
analysis for dimension reduction of count expression matrix. Internally, it
is applied the stats::dist()
function to the transformed count matrix to
get sample-to-sample distances.
MDSplot( exploredds, method = "spearman", plotly = FALSE, savePlot = FALSE, filePlot = NULL )
exploredds |
object of class |
method |
a |
plotly |
logical: when |
savePlot |
logical: when |
filePlot |
file name where the plot will be saved. For more information,
please consult the |
returns an object of ggplot
or plotly
class.
## Targets file targetspath <- system.file("extdata", "targets.txt", package = "systemPipeR") targets <- read.delim(targetspath, comment = "#") cmp <- systemPipeR::readComp(file = targetspath, format = "matrix", delim = "-") ## Count table file countMatrixPath <- system.file("extdata", "countDFeByg.xls", package = "systemPipeR") countMatrix <- read.delim(countMatrixPath, row.names = 1) ## Plot exploredds <- exploreDDS(countMatrix, targets, cmp = cmp[[1]], preFilter = NULL, transformationMethod = "rlog") MDSplot(exploredds, plotly = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.