graph_add_dates: Function to add major dates to a base graph

Description Usage Arguments Examples

View source: R/graph_add_dates.R

Description

This function adds major agreements to a base graph

Usage

1
graph_add_dates(base_graph, title, data, group_label, legend_label)

Arguments

base_graph

Ggplot graph to which datelines will be added

title

Title for the graph

data

Dataframe of dates with categorical labels

group_label

Group i.e. categorical variable value to graph

legend_label

Name of group for the graph legend

Examples

1
graph_add_dates(negative_sentiment_graph, "Negative Sentiment and Major Agreements", dates, "major_agree", "Major agreements")

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