makeWordcloud: Word cloud based on the word-occurrence data.frame.

View source: R/inpdfr_ANA_wordcloud.R

makeWordcloudR Documentation

Word cloud based on the word-occurrence data.frame.

Description

Plot a word cloud from the word-occurrence data.frame using wordcloud function.

Usage

makeWordcloud(
  wordF,
  wcFormat = "png",
  wcminFreq = 3,
  wcmaxWords = Inf,
  wcRandOrder = FALSE,
  wcCol = RColorBrewer::brewer.pal(8, "Dark2"),
  getPlot = c(TRUE, TRUE),
  mwidth = 1000,
  mheight = 1000,
  formatType = "png"
)

Arguments

wordF

The data.frame containing word occurrences.

wcFormat

Output format for the word cloud (deprecated, only "png").

wcminFreq

Minimum word frequency for words to be ploted (see wordcloud).

wcmaxWords

Maximum number of words to be ploted (see wordcloud).

wcRandOrder

Plot words in random order (see wordcloud).

wcCol

Color words (see wordcloud).

getPlot

A vector with two logical values. If plots[1]==TRUE, a word cloud is made for each document. If plots[2]==TRUE, a word cloud is made for the combinaison of all documents.

mwidth

The width of the plot in pixels.

mheight

The height of the plot in pixels.

formatType

The format for the output file ("eps", "pdf", "png", "svg", "tiff", "jpeg", "bmp").

Examples

## Not run: 
makeWordcloud(wordF = myDF)

## End(Not run)

frareb/inpdfr documentation built on Aug. 30, 2023, 5:24 a.m.