Learn R Programming

VOSONDash (version 0.5.4)

wordSentChart: Create an NRC Emotion chart

Description

This function creates a horizontal barchart measuring and sorting the eight NRC lexicon emotions in the text corpus. Emotions are measured as the proportion of the total value of the eight emotions in the text as a percentage.

Usage

wordSentChart(corp, pcolors = NULL)

Arguments

corp

tm package document Corpus object.

pcolors

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

Value

A barchart plot.