simple_plot: Plots simple and rolling shapes overlayed

simple_plotR Documentation

Plots simple and rolling shapes overlayed

Description

A simple function for comparing three smoothers

Usage

simple_plot(
  raw_values,
  title = "Syuzhet Plot",
  legend_pos = "top",
  lps = 10,
  window = 0.1
)

Arguments

raw_values

the raw sentiment values calculated for each sentence

title

for resulting image

legend_pos

position for legend

lps

size of the low pass filter. I.e. the number of low frequency components to retain

window

size of the rolling window for the rolling mean expressed as a percentage.


mjockers/syuzhet documentation built on Aug. 22, 2023, 7:42 a.m.