embedPlot | R Documentation |
Scatter plot for sections with two-dimenstional embeddings in a SummarizedExperiment
object. Each point stands for a section.
embedPlot(object, group = "section", method = "TSNE")
object |
A |
group |
Character, a variable in slot |
method |
Character, the embeddings for scatter plot. Must be one of |
A ggplot
object.
data(zh.data) zh <- createTomo(zh.data) zh <- runTSNE(zh) # Plot TSNE embeddings. embedPlot(zh) # Plot UMAP embeddings. zh <- runUMAP(zh) embedPlot(zh, method="UMAP") # Color sections by kmeans cluster labels. zh <- kmeansClust(zh, 3) embedPlot(zh, group="kmeans_cluster")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.