plot_population {IBMPopSim} | R Documentation |
Plot an age pyramid from age pyramid data frame with possibly several characteristics. See also plot_pyramid
and age_pyramid
.
plot_population(
population,
group_colors,
group_legend = "Group",
age_breaks,
value_breaks,
...
)
population |
Population data frame, with at least |
group_colors |
(Optional) Named character vector. |
group_legend |
(Optional) Legend title name. By default set to |
age_breaks |
(Optional) An ordered vector of indexes of vector |
value_breaks |
(Optional) Breaks for the axis of values. |
... |
Other arguments passed to |
Plot of age pyramid.
plot_population(EW_pop_14$sample, time = 0)