time_series_graph: Time Series Graph

View source: R/time_series_graph.R

time_series_graphR Documentation

Time Series Graph

Description

For a given basketball team, creates a line graph with date on the x-axis and score on the y-axis. Has two lines for team score and opponent score. Includes an option to use regular lines or a smoother.

Usage

time_series_graph(data, team, smooth)

Arguments

data

Tibble of Ken Pomeroy data

team

Character of desired string

smooth

Binary Use smoother.

Value

A ggplot geom_line or geom_smooth

Examples


## Regular line plot for Duke
time_series_graph(get_cbb_data(), "Duke")

## Smoothed line plot for Duke
time_series_graph(get_cbb_data(), "Duke", TRUE)


devinwarner10/devinwcbb documentation built on April 22, 2022, 2:06 a.m.