lda.plot.time: Plots topic values over time

Description Usage Arguments Value

Description

Plots the attention for a topic over time

Usage

1
2
lda.plot.time(m, topic_nr, time_var, date_interval = "day", pct = F,
  value = "relative", return.values = F)

Arguments

m

The output of LDA

time_var

A vector with time stamps (either numeric or Date class) of the same length and order of the documents (rows) in m$document_sums

date_interval

The interval for plotting the values over time. Can be: 'day', 'week', 'month' or 'year'

pct

Show topic values as percentages

value

Show topic values as 'total', or as 'relative' to the attention for other topics

return.values

Logical. If true, data that is plotted is returned as a data.frame

The

index of the topic (1 to K)

Value

data.frame for plotted values


kasperwelbers/corpus-tools documentation built on May 20, 2019, 7:37 a.m.