p = ggplot(cases, aes(x="Specimen date", y="Daily lab-confirmed cases", group = 1)) + geom_point() + geom_line() + labs(title = "Daily COVID-19 Cases")
p.save(filename = date_today, height=5, width=15, units = 'in', dpi=1000)
This is my current code to plot a graph from a DataFrame containing COVID-19 cases in England, which is then saved. I'm trying to add a trend line that is similar to the Worldometer graphs (as shown below).
I cannot post images yet, so I will provide the example here.
This is what my graph currently looks like.
I am trying to achieve the '3-day moving average' and the '7-day moving average'.