View source: R/helperFunctions.R
| getUMAP | R Documentation | 
Function to provide umap of projection
getUMAP(projection, axis = 2, umapMethod = "naive", umapConfig = umap.defaults)
projection | 
 martrix, a projection generated from projectR  | 
axis | 
 integer, either 1 umap of projection or 2 for umap of transpose of projection  | 
umapMethod | 
 character, implementation. Available methods are 'naive' (an implementation written in pure R) and 'umap-learn' (requires python package 'umap-learn')  | 
umapConfig | 
 umap.config, a list of parameters to customize umap embedding  | 
A umap of projection
library(umap)
projection <- projectR(data=p.ESepiGen4c1l$mRNA.Seq,loadings=AP.RNAseq6l3c3t$Amean,
dataNames = map.ESepiGen4c1l[["GeneSymbols"]], full = TRUE)
umapConfig = umap.defaults
umapConfig$n_neighbors = 3
projectionUMAP <- getUMAP(projection,umapConfig = umapConfig)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.