Here is a nice GIF showing the population aging of Japan, and here is the script to make this animated population pyramid in R using ggplot.
Kudos to Kyle Walker, author of this code and who you should definitely follow on Twitter and GitHub if you're interested in R, spatial analysis, data visualization and demography.
credit: Kyle Walker