# NOT RUN {
data(cluster_sample_animals)
dogs <- cluster_sample_animals[complete.cases(cluster_sample_animals), ]
dogs <- dogs[dogs$species == "dog", ]
PlotPopPyramid(dogs,
age.col = "age",
sex.col = "sex",
str.col = "sterilized")
PlotPopPyramid(dogs,
age.col = "age",
sex.col = "sex")
# }
Run the code above in your browser using DataLab