plot.emotion {sentimentr} | R Documentation |
Plots a emotion object
Description
Plots a emotion object.
Usage
## S3 method for class 'emotion'
plot(
x,
transformation.function = syuzhet::get_dct_transform,
drop.unused.emotions = TRUE,
facet = TRUE,
...
)
Arguments
x |
The emotion object. |
transformation.function |
A transformation function to smooth the emotion scores. |
drop.unused.emotions |
logical. If |
facet |
logical or one of |
... |
Other arguments passed to |
Details
Utilizes Matthew Jocker's syuzhet package to calculate smoothed emotion across the duration of the text.
Value
Returns a ggplot2 object.
[Package sentimentr version 2.9.0 Index]