Skip to contents

Plot sentiment for an individual text.

Usage

sentiment_plot(
  text,
  lexicon = c("nrc", "bing", "loughran", "afinn"),
  lexicon_dir = "."
)

Arguments

text

the text to calculate sentiment bar plot for.

lexicon

the sentiment dictionary to use.

lexicon_dir

directory containing the sentiment dictionayr.