calculate_tsne | R Documentation |
The calculate_tsne
function reduces high-dimensional data into a 2-dimensional space using
t-SNE for visualization and analysis. This function dynamically adjusts t-SNE parameters
based on the characteristics of the dataset, ensuring robust handling of edge cases.
It also performs data validation, such as checking for sufficient data, removing zero variance
columns, and adjusting perplexity for optimal performance.
calculate_tsne(dataset, settings, removeGroups = TRUE)
dataset |
A data frame or matrix containing the dataset to be processed. Must contain numeric columns. |
settings |
A list of settings for t-SNE, which may include |
removeGroups |
Logical, indicating whether to remove grouping variables before performing t-SNE. Default is TRUE. |
A list containing:
info.norm
: The dataset with the t-SNE coordinates (tsne1
, tsne2
) added.
tsne.norm
: The output from the Rtsne
function.
tsne_columns
: The names of the t-SNE columns used.
initial_dims
: The number of dimensions used in the initial PCA step.
perplexity
: The perplexity parameter used.
exaggeration_factor
: The exaggeration factor used.
max_iter
: The number of iterations used.
theta
: The Barnes-Hut approximation parameter used.
eta
: The learning rate used.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.