ShinyTopic: R Shiny Interactive Topic Modelling for Public Policy Narrative Case Study


Keywords: Unstructured text; Topic Modelling; R Shiny; Text Mining; Web Application

Abstract

The collection of unstructured text often yields a huge pile of raw data that cannot be easily measured with qualitative analysis. It is necessary to use a more varied form of assessment in order to allow researchers to explore large-scale collection of texts in an efficient manner. Using computer-aided to automate textual analysis offers them new opportunities rather than manual coding specifically for large amount of data, thus can saving resources. Topic model is one of the most common approach within the methodological domain of text mining and NLP. However, researcher in particular studies face technical barrier that limit systematic and replicable text analysis. ShinyTopic is web application built with R and Shiny packages that enable non-programmer who wish to perform topic models unifies with data import, pre-processing, topic analysis, metric assessment and annotation, visualization and result presentation. It gives research community to get collaborative benefit by simplifying complex methodologies for different subject. For demonstration, 200 documents from news outlet were processes to illustrate how user can perform complete analytical workflows-begin with data import and ended to result summary. In spite of its advantages, there are some limitations of ShinyTopic in term of language structure preprocessing and stemming of Indonesian text. To overcome that, a custom function was build inside core program of ShinyTopic yet less accurate for Indonesian language structures which still need to improve.

References

P. Ghasiya and K. Okamura, “Investigating COVID-19 News across Four Nations: A Topic Modeling and Sentiment Analysis Approach,” IEEE Access, vol. 9, pp. 36645–36656, 2021, doi: 10.1109/ACCESS.2021.3062875.

A. Bittermann and J. Rieger, “Finding Scientific Topics in Continuously Growing Text Corpora,” in Proceedings ofthe Third Workshop on Scholarly Document Processing, Oct. 2022, pp. 7–18.

D. Antons, E. Grünwald, P. Cichy, and T. O. Salge, “The application of text mining methods in innovation research: current state, evolution patterns, and development priorities,” in R and D Management, Blackwell Publishing Ltd, Jun. 2020, pp. 329–351. doi: 10.1111/radm.12408.

M. Aria, M. Spano, L. D’Aniello, C. Cuccurullo, and M. Misuraca, “TALL: Text analysis for all–an interactive R-shiny application for exploring, modeling, and visualizing textual data,” SoftwareX, vol. 34, Jun. 2026, doi: 10.1016/j.softx.2026.102590.

A. Bleichrodt, A. Phan, R. Luo, A. Kirpich, and G. Chowell, “StatModPredict: A user-friendly R-Shiny interface for fitting and forecasting with statistical models,” PLoS One, vol. 20, no. 8 August, Aug. 2025, doi: 10.1371/journal.pone.0329791.

R. Debnath and R. Bardhan, “India nudges to contain COVID-19 pandemic: A reactive public policy analysis using machine-learning based topic modelling,” PLoS One, vol. 15, no. 9 September, Sep. 2020, doi: 10.1371/journal.pone.0238972.

E. Mayor and A. Miani, “A topic models analysis of the news coverage of the Omicron variant in the United Kingdom press,” BMC Public Health, vol. 23, no. 1, Dec. 2023, doi: 10.1186/s12889-023-16444-7.

J. De la Hoz-M, M. J. Fernández-Gómez, and S. Mendes, “Ldashiny: An r package for exploratory review of scientific literature based on a bayesian probabilistic model and machine learning tools,” Mathematics, vol. 9, no. 14, Jul. 2021, doi: 10.3390/math9141671.

R. Churchill and L. Singh, “The Evolution of Topic Modeling,” ACM Comput. Surv., vol. 54, no. 10, Jan. 2022, doi: 10.1145/3507900.

U. Chauhan and A. Shah, “Topic Modeling Using Latent Dirichlet allocation: A Survey,” ACM Comput. Surv., vol. 54, no. 7, Sep. 2022, doi: 10.1145/3462478.

P. Kasprzak, L. Mitchell, O. Kravchuk, and A. Timmins, “Six Years of Shiny in Research: Collaborative Development of Web Tools in R,” 2020. [Online]. Available: https://digitalcommons.unl.edu/r-journal/144

Jeremy Allen, “Public Sector Shiny Showcase: Government Agencies Worldwide Building Data Science with R, Python, and Shiny,” https://posit.co/blog/public-sector-shiny-showcase-government-agencies-worldwide-building-data-science-r-python.

L. Hakim, A. Y. Aditya, and M. Lubis, “Topic modelling analysis of public policy narratives on prabowo-gibran in national news,” Journal of Soft Computing Exploration, vol. 6, no. 4, pp. 266–273, Dec. 2025, doi: 10.52465/joscex.v6i4.632.

R. Mu, Y. Li, and T. Cui, “Policy narrative, policy understanding and policy support intention: a survey experiment on energy conservation,” Policy Studies, vol. 43, no. 6, pp. 1361–1381, 2022, doi: 10.1080/01442872.2021.1954609.

C. Suhaeni, L. Nissa, A. Mualifah, and H. Wijayanto, “LDA Topic Modeling Analysis of Public Discourse on Indonesia’s Free Nutritious Meals Program (MBG),” International Journal on Informatics for Development, vol. 14, no. 1, pp. 587–600, 2025, doi: 10.14421/ijid.2025.5211.

A. Afiyati, I. Rochmad, S. Budiyanto, B. Jokonowo, H. Santoso, and K. Budiana, “Topic Modeling Analysis of Indonesia Food-Security News: Methods,Interpretations, and Trend Insights,” MATRIK : Jurnal Manajemen, Teknik Informatika dan Rekayasa Komputer, vol. 25, no. 2, pp. 335–344, Mar. 2026, doi: 10.30812/matrik.v25i2.5784.

A. F. Hidayatullah, M. R. Ma’arif, M. Habibie, and S. Khomsah, “Indonesia Infrastructure Development Topic Discovery on Online News with Latent Dirichlet Allocation,” IOP Conf. Ser. Mater. Sci. Eng., vol. 1077, no. 1, p. 012012, Feb. 2021, doi: 10.1088/1757-899x/1077/1/012012.

J. De la Hoz-M, M. J. Fernández-Gómez, and S. Mendes, “Ldashiny: An r package for exploratory review of scientific literature based on a bayesian probabilistic model and machine learning tools,” Mathematics, vol. 9, no. 14, Jul. 2021, doi: 10.3390/math9141671.

J. Ventura-León and M. Barboza-Palomino, “RCualiText: An Open-Source R/Shiny Web Application for Qualitative Analysis,” Feb. 2026. doi: https://doi.org/10.31234/osf.io/46zgx_v1.

S. Syahrial and R. P. F. Afidh, “Fine-Tuning Topic Modelling: A Coherence-Focused Analysis of Correlated Topic Models,” Infolitika Journal of Data Science, vol. 2, no. 2, pp. 82–87, Nov. 2024, doi: 10.60084/ijds.v2i2.236.

D. M. Blei and J. D. Lafferty, “Correlated Topic Models,” in NIPS’05: Proceedings of the 19th International Conference on Neural Information Processing Systems, MIT Press, Dec. 2005, pp. 147–154. [Online]. Available: www.jstor.org

N. Satyahadewi and H. Perdana, “Web Application Development for Inferential Statistics using R Shiny,” in 1st International Conference on Mathematics and Mathematics Education (ICMMEd 2020), Atlantis Press SARL, May 2021. doi: 10.2991/assehr.k.210508.099.

C. Sievert, “Interactive Web-Based Data Visualization with R, plotly, and shiny,” 1st Edition., New York, 2020, ch. 34, p. 470. doi: 10.4324/9780429447273.

R. Egger and J. Yu, “A Topic Modeling Comparison Between LDA, NMF, Top2Vec, and BERTopic to Demystify Twitter Posts,” Frontiers in Sociology, vol. 7, May 2022, doi: 10.3389/fsoc.2022.886498.

C. Meaney et al., “Non-negative matrix factorization temporal topic models and clinical text data identify COVID-19 pandemic effects on primary healthcare and community health in Toronto, Canada,” J. Biomed. Inform., vol. 128, Apr. 2022, doi: 10.1016/j.jbi.2022.104034.

C. Yang and Y. S. Kim, “A Context-Driven Topic Coherence Evaluation Approach Using LLM-Based Embeddings,” IEEE Access, vol. 13, pp. 182257–182275, 2025, doi: 10.1109/ACCESS.2025.3623881.

S. J. Weston, I. Shryock, R. Light, and P. A. Fisher, “Selecting the Number and Labels of Topics in Topic Modeling: A Tutorial,” Adv. Methods Pract. Psychol. Sci., vol. 6, no. 2, Apr. 2023, doi: 10.1177/25152459231160105.


Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel ShinyTopic: R Shiny Interactive Topic Modelling for Public Policy Narrative Case Study

Article History
Published: 2026-08-25
Abstract View: 0 times
PDF Download: 0 times
How to Cite
Hakim, L., & Aini, F. D. (2026). ShinyTopic: R Shiny Interactive Topic Modelling for Public Policy Narrative Case Study. Bulletin of Information System Research, 4(3), 182-192. https://doi.org/10.62866/bios.v4i3.398
Section
Articles