createTopicBrowser: Create a topic browser

Description Usage Arguments Value

Description

This will create a set of linked html pages to browse the given topic model

Usage

1
2
3
4
createTopicBrowser(clusterinfo, plotfunction.overview = plot_wordcloud,
  plotfunction.pertopic = c(plot_wordcloud, plot_topicdistribution),
  output = NULL, nmaxdoc = 10, nmaxwords = 100, browse = interactive(),
  topic_nrs = 1:nrow(info$topics_per_doc), ...)

Arguments

clusterinfo

The output of the clusterinfo function

plotfunction.overview

A standardized function (see the 'plot.' functions). Determines how the topics in the general topic overview are visualized

plotfunction.pertopic

A standardized function (see the 'plot.' functions). Determines what information is visualized in the pages per topic. Can be a list of multiple functions, in which case multiple plots are made.

output

an optional file name to write the browser html to

nmaxdoc

an integer, indicating the maximum number of top articles to be printed for each topic.

...

Parameters to be passed to the plotfunctions.

Value

the html generated or (invisible) the filename


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