Description Usage Arguments Value See Also Examples
Compute UMAP embeddings from a numerical data frame
1 2 3 4 5 6 7 8 9 10 | new_umapscan(
d,
n_neighbors = 15,
min_dist = 0.01,
metric = "euclidean",
scale = FALSE,
seed,
data_sup = NULL,
...
)
|
d |
a numerical matrix or data frame, or quanteda dfm |
n_neighbors |
|
min_dist |
|
metric |
|
scale |
scaling to be applied to the variables. Value passed to |
seed |
integer seed passed to |
data_sup |
a data.frame of supplementary variables not used for UMAP embeddings but for results visualisation |
... |
other arguments passed to |
A list of class umapscan
with the following components :
umap
: results of UMAP embeddings
data
: original numerical dataset
data_sup
: supplementary dataset
clusters
: a tree-like hierarchy of clusters
call
: function call
seed
: the seed used for random numbers for all umap and dbscan operations
1 2 3 4 | library(dplyr)
iris_num <- iris %>% select_if(is.numeric)
iris_sup <- iris %>% select(Species)
new_umapscan(iris_num, data_sup = iris_sup)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.