YoY Chart
Installation
Development version from GitHub:
GitHub: https://github.com/zpio/ggexplorer
Show/Hide code
::install_github("zpio/ggexplorer") remotes
Show/Hide code
library(ggexplorer)
library(dplyr)
Examples
Superstore Dataset
Show/Hide code
<- readr::read_csv(
data file = "https://raw.githubusercontent.com/zpio/datasets/main/sample_superstore.csv"
)
data
Basic Chart
Show/Hide code
yoy_chart(
data = data,
date = order_date,
value = sales,
prior_year = 2020,
current_year = 2021
)