Population pyramids are common tools for epidemiologists and there are several solutions in R. To our knowledge, the {apyramid} package is the only one that allows for non-binary splitting variable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.