Description Usage Arguments Value See Also Examples
Graph results of LDA
1 2 | graph_model(df, baseColNames = c("text", "date", "id", "journal"),
chunkLen = 10)
|
df |
data.frame a trained LDA model, taken from train_model |
baseColNames |
vector string names of the "base" columns - text, date, id, and journal |
chunkLen |
the number of graphs per page. If less than the number of topics, which is found automatically, splits the dataframe into n.topics/chunkLen sections, each of which has at most chunkLen plots of topic makeup over the documents |
n.topics graphs spread of chunkLen pages
train_model
, which runs LDA on a Mallet instance
1 2 3 4 | date_vec <- date_vec
dataframe <- stripped_xmlData
marsden_journals <- make_model(dataframe, 10, journalVec = c("Blast", "Egoist", "Freewoman", "NewFreewoman"))
graph_model(marsden_journals, chunkLen = 6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.