Computes a UMAP (Uniform Manifold Approximation and Projection) embedding
of the spectral data. Requires the uwot package.
Arguments
- cube
An hsi_cube object.
- n_components
Integer. UMAP dimensions. Default
2.- n_neighbors
Integer. Default
15.- min_dist
Numeric. Default
0.1.- pca_pre
Integer or NULL. PCA pre-reduction dimensionality. Default
20.
Examples
# \donttest{
# Requires uwot package
cube <- hs_example_cube()
if (requireNamespace("uwot", quietly = TRUE)) {
umap_result <- hs_umap(cube, n_components = 2)
}
# }