I came across this article in The New York Times today about coronavirus and I liked how the graphs were presented. I know the bar plots can is just using geom_col() in ggplot but I am more interested in the smoothing part. Just like this graph:
They said that "each red line is the seven-day moving average, which smooths out day-to-day anomalies..." How do you do that? I have a dataset that I plan to present it in a similar way.
Thanks!