Description Usage Arguments Value Note
This function creates a horizontal barchart measuring and sorting the eight NRC lexicon emotions. Emotions are measured as the proportion of the total value of the eight emotions in the text as a percentage.
1 | wordSentChart(data, pcolors = NULL)
|
data |
Dataframe. NRC emotions table. |
pcolors |
List. Colors to assign categorical variable in the plot. Default is |
A barchart plot.
Uses the syuzhet package implementation of Saif Mohammad’s NRC Emotion lexicon.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.