plot.profanity: Plots a profanity object

Description Usage Arguments Details Value

View source: R/profanity.R

Description

Plots a profanity object.

Usage

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

Arguments

x

The profanity object.

transformation.function

A transformation function to smooth the profanity scores.

...

Other arguments passed to get_transformed_values.

Details

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

Value

Returns a ggplot2 object.


sentimentr documentation built on Oct. 12, 2021, 9:06 a.m.