I found life expectancy at birth data for “health regions” in Canada for 2015-2017 and in “census tracts” in the USA for 2010-2015. Here is a map of these two countries, excluding areas with a life expectancy at birth lower than 0. Data sources and shapefiles: Canada mortality. Canada shapefiles. USA mortality. USA shapefiles downloaded using the tigris package.
Hey, I’ve finally found an excuse to use the gganimate package in R to generate bar chart races! I’m going back to one of my previous jobs, demography, and we are going to look at how the fertility of the cohorts of Quebec women born between 1915 and 1980 has evolved. The data Fertility data from Statistics Canada, year 1921-2016. It includes data for all provinces. The code As usual, the code is on my github.