I have a Shiny app which has both a reactive table, and a ggplot2
line chart (time series) that uses the reactive table as the dataset. I am using scale_x_date(date_breaks = "1 week")
in the line chart, and the min
and max
values of the dates seen change appropriately with the reactive table.
My problem is that I would like the week intervals to be a Saturday (corresponding with the end of our fiscal week, and all the timestamps in the reactive table) but ggplot2
defaults to showing Mondays. How may I change the x-axis to show Saturdays but also scale appropriately in response to the reactive table?