| plot.sentiment {sentimentr} | R Documentation |
Plots a sentiment object.
## S3 method for class 'sentiment' plot(x, transformation.function = syuzhet::get_dct_transform, ...)
x |
The sentiment object. |
transformation.function |
A transformation function to smooth the sentiment scores. |
... |
Other arguments passed to |
Utilizes Matthew Jocker's syuzhet package to calculate smoothed sentiment across the duration of the text.
Returns a ggplot2 object.