library(tidyverse)
library(lubridate)
library(tidyquant)
library(plotly)
source("scripts/plot_sales.R")
bike_orderlines_tbl <- read_rds("data/bike_orderlines.rds")
Total Sales Charts
Quarterly Sales
Trends
plot_total_sales(unit = "quarter", interactive = interative)
Monthly Sales
Trends
plot_total_sales(unit = "month", interactive = interative)
Weekly Sales
Trends
plot_total_sales(unit = "week", date_format = "%Y-%m-%d", interactive = interative)
Category Sales Charts
Road
Quarterly
plot_categories(category_1 = "Road", unit = "quarter", ncol = 1, interactive = interative)
Monthly
plot_categories(category_1 = "Road", unit = "month", ncol = 1, interactive = interative)
Weekly
plot_categories(category_1 = "Road", unit = "week", date_format = "%Y-%m-%d", ncol = 1, interactive = interative)
Mountain
Quarterly
plot_categories(category_1 = "Mountain", unit = "quarter", ncol = 1, interactive = interative)
Monthly
plot_categories(category_1 = "Mountain", unit = "month", ncol = 1, interactive = interative)
Weekly
plot_categories(category_1 = "Mountain", unit = "week", date_format = "%Y-%m-%d", ncol = 1, interactive = interative)