plot.profanity: Plots a profanity object
Description
Plots a profanity object.
Usage
# S3 method for profanity
plot(x, transformation.function = syuzhet::get_dct_transform, ...)
Arguments
transformation.function
A transformation function to smooth the profanity
scores.
Value
Returns a ggplot2 object.
Details
Utilizes Matthew Jocker's syuzhet package to calculate smoothed
profanity across the duration of the text.