View source: R/manuscript-viz.R
| embedding_plot | R Documentation |
Project the objects to two dimensions and colour them by cluster. "pca"
uses classical MDS of the fused dissimilarity (always available); "umap"
needs uwot and "tsne" needs Rtsne.
embedding_plot(
x,
labels,
method = c("pca", "umap", "tsne"),
col = NULL,
main = NULL
)
x |
A fitted result ( |
labels |
Cluster label of each object. |
method |
|
col |
Optional cluster colours. |
main |
Plot title. |
Invisibly the 2-column coordinate matrix.
cluster_selection_plot
data(mosaic_toy)
fit <- M_ABC(mosaic_toy$List, numsim = 40, NC = 3)
embedding_plot(fit, mosaic_labels(fit, 3), method = "pca")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.