View source: R/get_histories.R
get_guided_lda_history | R Documentation |
Returns a guided tour with the LDA index to the python' backend. This guided tour is generated with the 'tourr' functions 'save_history' and 'guided_tour'.
get_guided_lda_history(data, clusters, dimension)
data |
the dataset to calculate the projections with |
clusters |
the clusters for the lda to be performed on |
dimension |
1 for a 1d tour or 2 for a 2d tour |
history object containing the projections of the requested tour
data("flea", package = "tourr")
clusters <- as.numeric(factor(flea[[7]]))
get_guided_lda_history(flea[-7], clusters, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.