A minimal, CRAN-compliant wrapper for the Barnes-Hut implementation of T-distributed Stochastic Neighbor Embedding (t-SNE).
You will need the following software:
Run this in R to install the current GitHub version:
devtools::install_github("mschubert/bhtsneR")
Here is an example on how to run it on the iris data set:
library(bhtsneR)
# perform Barnes-Hut t-SNE
result = bhtsne(iris[1:4])
plot(result, col=iris[[5]])
# perform exact calculations
# this is equivalent to bhtsne(..., theta=0)
result = tsne(iris[1:4])
plot(result, col=iris[[5]])
Barnes-Hut-SNE. (2013). L.J.P. van der Maaten. arXiv:1301.3342.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.