generate_base_graph: Function to generate a base graph of sentiment

Description Usage Arguments Examples

View source: R/generate_base_graph.R

Description

This function generates a time series graph of 1 type of sentiment x the 3 actors. Includes scatterplot of observed values as well as loess curves.

Usage

1
2
generate_base_graph(y_var, y_legend, title, FARC_results, joint_results,
  govt_results)

Arguments

y_var

Name of the y variable to be plotted (must match column name in the dataframes)

y_legend

Name for the y variable to appear in the legend

title

Title for the graph

FARC_results

df of FARC LIWC results

joint_results

df of joint LIWC results

govt_results

df of govt LIWC results

Examples

1
generate_base_graph("EmoNeg", "Negative Emotion", "Graph of Negative Emotion", FARC_results, joint_results, govt_results)

leslie-huang/MApkg documentation built on May 21, 2019, 5:11 a.m.