Constructing panels of population pyramid plots based on lattice