R/pyramid.R
plot.population.RdPlot an age pyramid from age pyramid data frame with possibly several characteristics.
# S3 method for class 'population'
plot(
x,
group_colors = NULL,
group_legend = "Group",
age_breaks = NULL,
value_breaks = NULL,
...
)Object of class population.
(Optional) Named character vector.
(Optional) Legend title name. By default set to "Group".
(Optional) An ordered vector of indexes of vector unique(pyr$age) used for breaks for the axis of ages.
(Optional) Breaks for the axis of values.
Additional arguments
Plot of age pyramid.
plot(population(EW_pop_14$sample), time = 0)