graph_model: Graph results of LDA

Description Usage Arguments Value See Also Examples

Description

Graph results of LDA

Usage

1
2
graph_model(df, baseColNames = c("text", "date", "id", "journal"),
  chunkLen = 10)

Arguments

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

Value

n.topics graphs spread of chunkLen pages

See Also

train_model, which runs LDA on a Mallet instance

Examples

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)

mlinegar/litMagModelling documentation built on May 23, 2019, 2:12 a.m.