topic_scaled_2d | R Documentation |
Use multidimensional scaling to obtain two-dimensional coordinates for each topic in a model.
topic_scaled_2d(m, n_words = 1000)
m |
|
n_words |
Number of columns of the topic-word matrix to use
in calculation. Passed on to |
The coordinates are derived by finding the Jensen-Shannon divergences between topics considered as distributions over words and then scaling this matrix to two dimensions.
a matrix with 2 columns and as many rows as m
.
Mimno, D. 2012. Computational historiography: Data mining in a century of classics journals. ACM J. Comput. Cult. Herit. 5, no. 1 (April 2012): article 3. http://doi.acm.org/10.1145/2160165.2160168.
row_dists
, topic_divergences
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.