View source: R/createTsneSlides.R
This function allows user to plot cluster results from a PAM object using t-distributed stochastic neighborhood embedding. Several slides are created based on the number of iterations specified. E.g. If you specify 1000 iterations, the slides created will be tsne results from 1, 10, 20, 30, 40, and so on up to 1000 iterations.
1 | createTsneSlides(df, gowerDiss, id, pam_fit, iterations)
|
df |
Data frame from which dissimilarities were calculated |
gowerDiss |
gower dissimilarities to use |
id |
ids from original data |
pam_fit |
PAM object from building a PAM clustering model |
iterations |
Number of iterations for tsne |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.