Racing bar charts can be a useful way to visualize comparative data over time. There are a number of ways to create them in R, including combining ggplot with gganimate or using echarts4r. But the easiest way I’ve found so far is with the ddplot package.
ddplot isn’t on CRAN, so you’ll need to install it from GitHub with a package like devtools or remotes.