plot_time: Standardized plotting function that can be passed to the...

Description Usage Arguments Value

Description

One of the standardized plotting function used in the Topicbrowser package to manage how topics and additional information are visualized. This specific function plots a graph showing the number of words assigned to the topic per time period

Usage

1
2
3
plot_time(lda_model = NULL, document_topic_matrix = NULL,
  clusterinfo = NULL, topic_nr, time_var = "date", time_interval = "auto",
  pct = F, value = "total", ...)

Arguments

topic_nr

the index number of a topic

time_var

either a vector containing the date for each document, or the column name of the date variable in the metadata stored in the clusterinfo object

time_interval

a string indicating what interval to use for plotting the time/date graph. Can be 'year', 'month', 'week' and 'day'. If 'auto', the date_interval will be chosen based on the number of days in the analysis.

info

The output of the clusterinfo function

Value

nothing, only plots


vanatteveldt/topicbrowser documentation built on May 3, 2019, 2:59 p.m.