Learn R Programming

VOSONDash (version 0.5.4)

wordCloudPlot: Create a Word Cloud plot

Description

This function creates a wordcloud plot of words in a text corpus.

Usage

wordCloudPlot(corp, seed = NULL, min_freq = 1, max_words = 50, pcolors = NULL)

Arguments

corp

tm package document Corpus object.

seed

Numeric. Seed value can be supplied to reproduce a word cloud layout.

min_freq

Numeric. Minimum word frequency to include a word in the word cloud. Default is 1.

max_words

Numeric. Maximum number of words to render in the word cloud. Default is 50.

pcolors

List. Colors to assign categorical variable in the plot. Default is NULL.

Value

A wordcloud plot.