View source: R/time_series_graph.R
time_series_graph | R Documentation |
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.
time_series_graph(data, team, smooth)
data |
Tibble of Ken Pomeroy data |
team |
Character of desired string |
smooth |
Binary Use smoother. |
A ggplot geom_line or geom_smooth
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.