This function performs multidimensional scaling of the simulated counts from the pairwise sample distances using variable genes (i.e. variance unequal to zero). Prior to distance calculation, the counts are normalized using the simulated size factors and log2 transformed. In the plot, the samples are annotated by phenotype and batch, if present.
plotCounts(simCounts, Distance, Scale, DimReduce, verbose = T)
| simCounts | The output of |
|---|---|
| Distance | The (dis-)similarity measure to be used. This can be "euclidean", "maximum", "manhattan", "canberra", "binary" or "minkowski" for distance measures and "spearman", "pearson" or "kendall" for correlation measures converted into distances, respectively. For more information, see |
| Scale | A logical vector indicating whether to use scaled log2 transformed counts or not. |
| DimReduce | The dimension reduction approach to be used. This can be "MDS" |
| verbose | Logical value to indicate whether to print function information. Default is |
A ggplot object.
# NOT RUN {
## not yet
# }