The accompanying data and code is a companion to "Topic Modeling and Textual Analysis of American Scientific Journals, 1818 – 1922 " (Martin, 2019). This zip file contains the data used in the above article. SOFTWARE: The LDA topic models were constructed with MALLET (http://mallet.cs.umass.edu/topics.php). DATA: 3 LDA topic models of nineteenth-century journals: A topic model with 40 topics per year from 1819 - 1922 for the American Journal of Science is in the zip file and is called "AJS_Topic_Model_Summary_Mallet" A topic model with 40 topics per year from 1848 - 1914 for the Proceedings of the American Association for the Advancement of Science is in the zip file and is called "PAAAS_Topic_Model_Summary_Mallet" A topic model with 40 topics per year from 1879 - 1922 for the Journal of the American Chemical Society is in the zip file and is called "JACS_Topic_Model_Summary_Mallet" There are also three summaries of scholar assigned topic categories One topic categorization for the American Journal of Science is in the zip file and is called "AJS_Categorization" One topic categorization for the Proceedings of the American Journal of Science is in the zip file and is called "PAAAS_Categorization" One topic categorization for the Proceedings of the Journal of the American Chemical Society is in the zip file and is called "JACS_Categorization" The colors used for the sunburst diagrams are in a csv file called “colors2.csv”. The color of each topic is consistent between the sunburst diagram of the automated hierarchy and the sunburst diagram of the handmade hierarchy. “lev.sunburst.csv” is a csv written by “nesting_full_hansard_topics.R” which is necessary for “naming_computer_nested_topics.R”. It is included in the zip file, but also is an output from the code below. “lev_sunburst_with_names.csv” is a csv written by “naming_computer_nested_topics.R” which is necessary for the sunburst diagram. It is included in the zip file, but also is an output from the attached code. "js.topic.dists.all.norm.csv" is a csv written by “read_in_mallet_models.R” which is an input in “nesting_full_hansard_topics.R”. It is included in the zip file, but also is an output from the attached code. Using Data Files: The summary files list topic numbers along with years for each of the journals. The categorization files show scholar assigned categories along with the topic numbers assigned to each category. For instance in the American Journal of Science, the "Botany" Category in 1819 contains topics 1, 10, 16, and 38. The "Chemistry" category in the same year contains topics 12, 18, and 24. This data can be used either to check what categories were assigned to each topic. The visualizations were created using numbers of categories and percentages to determine how often categories of topics changed per year, e.g. "Botany" in the American Journal of Science has 3 topics in 1819, but only 1 in 1820.