textTopicsWordcloud: Plot word clouds

View source: R/7_2_textTopicsAnalysis.R

textTopicsWordcloudR Documentation

Plot word clouds

Description

This function create word clouds and topic fugures

Usage

textTopicsWordcloud(
  model = NULL,
  ngrams = NULL,
  test = NULL,
  num_top_words = 10L,
  seed = 2024,
  ...
)

Arguments

model

(list) A trained topics model. For examples from topicsModel(). Should be NULL if plotting ngrams.

ngrams

(list) The output from the the topicsGram() function . Should be NULL if plotting topics.

test

(list) The test results; if plotting according to dimension(s) include the object from topicsTest() function.

num_top_words

Integer. Number of top terms to return per topic.

seed

(integer) The seed to set for reproducibility; need to be the same seed number as in in

...

Parameters from the topicsPlot() function in the topics package.

Value

The function saves figures in the save_dir.


text documentation built on June 13, 2026, 5:06 p.m.