hs_tsne: Run tSNE on a hyperspec object

Description Usage Arguments Examples

View source: R/hs_tsne.R

Description

Run tSNE on a hyperspec object

Usage

1
hs_tsne(hs.x, PCA = FALSE, ...)

Arguments

hs.x

hyperSpec object or alternatively distance matrix

PCA

Should PCA be used for initial dimension reduction? Defaults to FALSE.

...

Parameters to pass on to tsne().

Examples

1
2
3
4
5
6
7
8
9
## Short example

# Load hyperSpec object
data("hs_example")

# Convert to MassSpectrum object
hs.x.proc <- hs_preprocess(hs_example)

df.tsne <- hs_tsne(hs.x.proc)

CMET-UGent/MicroRaman documentation built on July 25, 2020, 6:20 p.m.