LDAvis
R package for web-based interactive topic model visualization.
Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 10 committers (10.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.6%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
R package for web-based interactive topic model visualization.
Basic Info
Statistics
- Stars: 565
- Watchers: 32
- Forks: 131
- Open Issues: 35
- Releases: 0
Topics
Metadata Files
README.md
LDAvis
R package for interactive topic model visualization.

LDAvis is designed to help users interpret the topics in a topic model that has been fit to a corpus of text data. The package extracts information from a fitted LDA topic model to inform an interactive web-based visualization.
Installing the package
- Stable version on CRAN:
r
install.packages("LDAvis")
- Development version on GitHub (with devtools):
r
devtools::install_github("cpsievert/LDAvis")
Getting started
Once installed, we recommend a visit to the main help page:
r
library(LDAvis)
help(createJSON, package = "LDAvis")
The documentation and example on the bottom of that page should provide a quick sense of how to create (and share) your own visualizations. If you want more details about the technical specifications of the visualization, see the vignette:
r
vignette("details", package = "LDAvis")
Note that LDAvis itself does not provide facilities for fitting the model (only visualizing a fitted model). If you want to perform LDA in R, there are several packages, including mallet, lda, and topicmodels.
If you want to perform LDA with the R package lda and visualize the result with LDAvis, our example of a 20-topic model fit to 2,000 movie reviews may be helpful.
LDAvis does not limit you to topic modeling facilities in R. If you use other tools (MALLET and gensim are popular), we recommend that you visit our Twenty Newsgroups example to help quickly understand what components LDAvis will need.
Sharing a Visualization
To share a visualization that you created using LDAvis, you can encode the state of the visualization into the URL by appending a string of the form:
"#topic=k&lambda=l&term=s"
to the end of the URL, where "k", "l", and "s" are strings indicating the desired values of the selected topic, the value of lambda, and the selected term, respectively. For more details, see the last section of our Movie Reviews example, or for a quick example, see the link here:
https://ldavis.cpsievert.me/reviews/vis/#topic=3&lambda=0.6&term=cop
Video demos
- Visualizing & Exploring the Twenty Newsgroup Data
- Visualizing Topic Models demo with Hacker News Corpus
More documentation
To read about the methodology behind LDAvis, see our paper, which we presented at the 2014 ACL Workshop on Interactive Language Learning, Visualization, and Interfaces in Baltimore on June 27, 2014.
Additional data
We included one data set in LDAvis, 'TwentyNewsgroups', which consists of a list with 5 elements: - phi, a matrix with the topic-term distributions - theta, a matrix with the document-topic distributions - doc.length, a numeric vector with token counts for each document - vocab, a character vector containing the terms - term.frequency, a numeric vector of observed term frequencies
We also created a second data-only package called LDAvisData to hold additional example data sets. Currently there are three more examples available there: - Movie Reviews (a 20-topic model fit to 2,000 movie reviews) - AP (a 40-topic model fit to approximately 2,246 news articles) - Jeopardy (a 100-topic model fit to approximately 20,000 Jeopardy questions)
Owner
- Name: Carson Sievert
- Login: cpsievert
- Kind: user
- Company: @rstudio
- Website: https://cpsievert.me/
- Twitter: cpsievert
- Repositories: 262
- Profile: https://github.com/cpsievert
Senior software engineer @posit-dev (formerly @rstudio).
GitHub Events
Total
- Watch event: 10
- Fork event: 2
Last Year
- Watch event: 10
- Fork event: 2
Committers
Last synced: 9 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Anonymous@example.com | c****1@g****m | 159 |
| kshirley | k****y@y****m | 80 |
| Chris Baker | c****r@g****m | 8 |
| MarcinKosinski | k****m@s****l | 8 |
| David Fuhry | d****d@1****e | 4 |
| Ben Marwick | b****k@h****m | 2 |
| Dmitry Selivanov | d****v@c****u | 2 |
| MatthieuBizien | o****5@g****m | 1 |
| Devin McCabe | d****e@g****m | 1 |
| Ben Mabey | b****n@b****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 7 months ago
All Time
- Total issues: 75
- Total pull requests: 27
- Average time to close issues: 5 months
- Average time to close pull requests: about 1 month
- Total issue authors: 54
- Total pull request authors: 15
- Average comments per issue: 2.36
- Average comments per pull request: 2.93
- Merged pull requests: 19
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- cpsievert (7)
- MarcinKosinski (4)
- bmabey (4)
- cho7tom (3)
- jamesLSI (2)
- lmkirvan (2)
- niutyut (2)
- him4u324 (2)
- leungi (2)
- sixtyfive (2)
- Graybosch (2)
- sydneymwong (1)
- norseghost (1)
- dcasciotti (1)
- chdoig (1)
Pull Request Authors
- cpsievert (8)
- MarcinKosinski (3)
- crew102 (2)
- bmabey (2)
- kshirley (1)
- kaneplusplus (1)
- benmarwick (1)
- MatthieuBizien (1)
- the-mad-statter (1)
- dhicks (1)
- davidfuhry (1)
- pavel-lexyr (1)
- Jpowell94 (1)
- dselivanov (1)
- dpmccabe (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 1,043 last-month
- Total docker downloads: 224
- Total dependent packages: 3
- Total dependent repositories: 11
- Total versions: 2
- Total maintainers: 1
cran.r-project.org: LDAvis
Interactive Visualization of Topic Models
- Homepage: https://github.com/cpsievert/LDAvis
- Documentation: http://cran.r-project.org/web/packages/LDAvis/LDAvis.pdf
- License: MIT + file LICENSE
-
Latest release: 0.3.2
published over 10 years ago
Rankings
Maintainers (1)
Dependencies
- R >= 3.4.0 depends
- RJSONIO * imports
- parallel * imports
- proxy * imports
- digest * suggests
- gistr >= 0.0.8.99 suggests
- htmltools * suggests
- knitr * suggests
- lda * suggests
- mallet * suggests
- rmarkdown * suggests
- servr * suggests
- shiny * suggests
- topicmodels * suggests
