#
09. Pyramid chart
#
Introduction
A population pyramid, also known as an age-sex pyramid, is a graphical illustration that shows the distribution of various age groups in a population, which forms the shape of a pyramid when the population is growing. It typically consists of two back-to-back bar graphs, with the population plotted on the X-axis and age groups on the Y-axis, one showing the number of males and one showing females in a particular population in five-year age groups. This type of plot is useful for understanding the age distribution and gender ratio within a population, which can be critical for demographic analysis and planning.
#
Example
#
Message
Create a population pyramid chart with the number of samples on the y-axis and age groups on the x-axis, separated by gender. Display male and female data on opposite sides of the y-axis for a clear comparison.
#
Results