Learn R Programming

VOSONDash (version 0.5.4)

wordFreqChart: Create a Word Frequency chart

Description

This function creates a horizontal barchart of word frequencies in a text corpus.

Usage

wordFreqChart(corp, min_freq = 1, top_count = 20, pcolors = NULL)

Arguments

corp

tm package document Corpus object.

min_freq

Numeric. Minimum frequency for a word to be included in the chart. Default is 1.

top_count

Numeric. Top count of words to render in word frequency chart. Default is 20.

pcolors

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

Value

A barchart plot.