This function creates a horizontal barchart of word frequencies in a text corpus.
wordFreqChart(corp, min_freq = 1, top_count = 20, pcolors = NULL)
tm package document Corpus
object.
Numeric. Minimum frequency for a word to be included in the chart. Default is 1
.
Numeric. Top count of words to render in word frequency chart. Default is 20
.
List. Colors to assign categorical variable in the plot. Default is NULL
.
A barchart plot.