new_umapscan: Compute UMAP embeddings from a numerical data frame

Description Usage Arguments Value See Also Examples

View source: R/umapscan.R

Description

Compute UMAP embeddings from a numerical data frame

Usage

 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,
  ...
)

Arguments

d

a numerical matrix or data frame, or quanteda dfm

n_neighbors

n_neighbors argument passed to uwot::umap()

min_dist

min_dist argument passed to uwot::umap()

metric

metric argument passed to uwot::umap()

scale

scaling to be applied to the variables. Value passed to uwot::umap().

seed

integer seed passed to base::set.seed() before umap embeddings for reproductibility

data_sup

a data.frame of supplementary variables not used for UMAP embeddings but for results visualisation

...

other arguments passed to uwot::umap()

Value

A list of class umapscan with the following components :

See Also

uwot::umap()

Examples

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)

juba/umapscan documentation built on Aug. 29, 2020, 7:31 a.m.