Plot the evolution of an LDA topic across time
问题 I'd like to plot how the proportion of a particular topic changes over time, but I've been having some trouble isolating a single topic and plotting over time, especially for plotting multiple groups of documents separately (let's create two groups to compare - journals A and B). I've saved dates associated with these journals in a function called dateConverter . Here's what I have so far (with much thanks to @scoa): library(tm); library(topicmodels); txtfolder <- "~/path/to/documents/"