cpsievert / LDAvis

R package for web-based interactive topic model visualization.
Other
557 stars 131 forks source link

Option for not reordering topics #51

Closed dselivanov closed 8 years ago

dselivanov commented 8 years ago

Often it is useful to manually inspect topic terms and documents: watch LDAvis plots -> go to texts/topics distribution. And at this moment, ordering by topic size becomes annoying - you should manually adjust underlying data, so I added simple option for not reordering topics. (by default it still reorders).

kshirley commented 8 years ago

Hey @dselivanov , sorry for the slow reply here.

This is great -- the option to not re-order topics seems like a useful thing to have.

The createJSON() function currently returns the new topic ordering to the user, but as you said, if the user is toggling between the interactive vis and their R console to inspect topics, this requires the user to manually adjust phi and theta in their workspace to reflect the new ordering so that the topics match the vis. Not to mention the user might have some other reason for wanting a specific topic ordering, such as a coherence measure.

@cpsievert I'm ready to merge if you are...

cpsievert commented 8 years ago

Thanks @dselivanov!