plot.sentiment: Plots a sentiment object

Description Usage Arguments Details Value

View source: R/sentiment_stanford.R

Description

Plots a sentiment object.

Usage

1
2
3
## S3 method for class 'sentiment'
plot(x,
  transformation.function = syuzhet::get_dct_transform, ...)

Arguments

x

The sentiment object.

transformation.function

A transformation function to smooth the sentiment scores.

...

Other arguments passed to get_transformed_values.

Details

Utilizes Matthew Jocker's syuzhet package to calculate smoothed sentiment across the duration of the text.

Value

Returns a ggplot2 object.


trinker/stansent documentation built on Oct. 12, 2021, 11:19 a.m.