View source: R/plotReducedDimension.R
| plotReducedDimension | R Documentation |
Plot reduced dimension space using pca, tsne, diffusion components, UMAP or custom.
plotReducedDimension(
object,
assay.type = "RNA",
reduction.type = c("tsne", "pca", "DC", "umap", "custom"),
dims.use = c(1, 2),
annotation,
annotation.color,
showlabels,
dotsize = 1,
labelsize = 3,
convex = FALSE,
percentage = 0.8,
alpha = 0.1
)
object |
CellRouter object. |
assay.type |
character; the type of data to use. |
reduction.type |
character; the dimension reduction space to be used: pca, tsne, DC of diffusion components, umap, or custom. |
dims.use |
numeric vector; dimensions to use. |
annotation |
character; column in the metadata table to annotate the figure. |
annotation.color |
character; corresponding color column for the annotation. |
showlabels |
logical; show labels in the plot. |
dotsize |
numeric; dot size. |
labelsize |
numeric; label size. |
convex |
boolean; whether to connect the dots. |
percentage |
numeric; proportion of data in the panel (between 0 and 1). |
alpha |
numeric; transparency (between 0 and 1). |
ggplot2; plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.