View source: R/visualization.R
This function is used as a replacement to 'jsPCA' in LDAVis package function createJSON, as the default can't handle words with probability 0. This also ensures consistency to the different month topics, as it now uses the same cosine similarity instead of symetric Dkl. For more details, see issue: https://github.com/sailuh/perceive/issues/84
1 | cosinePCA(phi)
|
phi, |
as specified in createJSON on LDAvis. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.