You can use the 'time' argument to display counts for different timeframes, e.g. time = "day" will give a chart where each bar represents the volume counts for a day.

plot_volume_over_time(
  df,
  date,
  ...,
  smooth = FALSE,
  bar_colour = share_colours[4],
  time = c("day", "week", "month", "quarter", "year")
)

Arguments

df

Data Frame or Tibble object

date

Date column

...

passed to geom_smooth

smooth

Add a local average smoothing line to the plot?

bar_colour

Colour of bars - string, name of hexcode

time

select unit e.g. ("day", "week", "month", "quarter", "year")

Value

a plot of volume over time