plot the histogram of purchases
I think first of all, if you want to get aggregated data, you need to group it by day/week, like this:
library(dplyr)
library(lubridate)



x &lt;- strptime(data$Timestamp, format = &quot;%Y-%m-%d&quot;)#assume you need only days/month , assign to a variable, because dplyr has problems with with date type.

data$month &lt;- month(x) #get month from date obj.

month_summ &lt;- data %&gt;% group_by(month) %&gt;%  #group by month and calculated sold items per month
  summarise(
    total_sales = n()
  )


library(ggplot2)

ggplot(data=month_summ, aes(x=month, y=total_sales)) +   geom_bar(stat=&quot;identity&quot;) #plot the histogram

This should do the work for you or act like a starting point. Here is a good reference for ggplot2 bar plots
Hope this helps!