run_TSNE | R Documentation |
This function calculates t-SNE coordinates on data. Random seed is set to 1. Returns full t-SNE object.
run_TSNE(
data = NULL,
scale = TRUE,
center = FALSE,
perplexity = 30,
n_iter = 1000
)
data |
(Required) Data in data frame format. Expects results from load_data |
scale |
Default: TRUE. Option to standardise data prior to t-SNE calculations |
center |
Default: FALSE. Option to center data prior to PCA within the Rtsne algorithm |
perplexity |
Value for perplexity (Default: 30) |
n_iter |
Number of iterations (Default: 1000) |
tsne.results <- run_TSNE(data)
t-SNE coordinates can be extracted under Y:
tsne.coordinates <- tsne.results$Y
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.