Plot an age pyramid from age pyramid data frame with possibly several characteristics. See also plot_pyramid and age_pyramid.
plot_pyramid
age_pyramid
plot_population( population, group_colors, group_legend = "Group", age_breaks, value_breaks, ... )
Population data frame, with at least birth and death column.
birth
death
(Optional) Named character vector.
(Optional) Legend title name. By default set to "Group".
"Group"
(Optional) An ordered vector of indexes of vector unique(pyr$age) used for breaks for the axis of ages.
unique(pyr$age)
(Optional) Breaks for the axis of values.
Other arguments passed to age_pyramid (including time).
time
Plot of age pyramid.
# NOT RUN { plot_population(EW_pop_14$sample, time = 0) # }
Run the code above in your browser using DataLab