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