plot_umap | R Documentation |
UMAP plot
plot_umap( X = NULL, labels = NULL, pca = 50, n_components = 2, n_neighbors = 30, min_dist = 0.1, point.size = 0.3, alpha = 1, title = NULL, legend.name = "labels", cols = NULL, emb = NULL, seed = 0 )
X |
n-by-p expression matrix |
labels |
vector of sample labels |
pca |
umap parameter, dimension of pca |
n_components |
umap parameter, dimension of low dimensional embedding space (default 2) |
n_neighbors |
umap parameter, number of neighbors for nearest neighbor graph |
min_dist |
umap parameter, minimum distance of point to its nearest neighbor in the embedding space. |
point.size |
numeric scalar, point size in the plot, 0.3 by default. |
alpha |
numeric, transparency of the points in the plot, by default alpha=1 with no transparency |
title |
string, title of the plot, NULL by default |
legend.name |
string, legend name, by default is 'labels' |
cols |
vector of colors, length should the same as cardinality of labels, by default NULL |
emb |
embedding of the UMAP if provided, by default NULL |
seed |
random seed, by default 0 |
A list of
umap plot
umap embedding matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.