Description Usage Arguments Details Value Examples
Generates a 2D MDS plot that can use the following inputs stored in an EMSet:
1 2 |
object |
An |
Dim1 |
Dimension to plot on the x-axis. |
Dim2 |
Dimension to plot on the y-axis. |
group |
(Optional) Name of the column in colInfo that describe a set of conditions you would like to colour cells by. |
density |
Vary alpha by density (Default: FALSE) |
PCA |
Use pre-calculated PCA-reduced values (Default: TRUE) |
1. Distance matrix generated by runCORE
.
2. PCA matrix generated by runPCA
.
3. Normalised, log-transformed count matrix stored in logcounts.
A ggplot glob that contains a scatter plot.
1 2 3 4 5 6 | # Load EMSet
em_set <- ascend::analyzed_set
# Generate MDS
mds_plot <- plotMDS(em_set, Dim1 = 1, Dim2 = 2,
group = "cluster", PCA = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.