title: Population pyramid w projection in R
body: <p>I would like to create population pyramids in <strong>R</strong>. I know that there are many examples here on StackOverflow, but I would like to create one that also include population projections,  i.e. with bars for each age group by sex and lines by sex and age group for the projections. </p>
  
  <p>You can see an example here: <a href="http://geographyblog.eu/wp/the-worlds-population-pyramid-is-changing-shape/" rel="noreferrer">http://geographyblog.eu/wp/the-worlds-population-pyramid-is-changing-shape/</a></p>
  
  <p><img src="https://i.stack.imgur.com/BtF9k.gif" alt="enter image description here"></p>
  
  <p>If there are some suggestions on how to better illustrate this (e.g. with smoothed lines), they are also welcome, but I would like to indicate both the current situation and the projection. Example data can be found on UN's website: <a href="http://esa.un.org/wpp/population-pyramids/population-pyramids_absolute.htm" rel="noreferrer">http://esa.un.org/wpp/population-pyramids/population-pyramids_absolute.htm</a></p>
  
  <p>Any help would be greatly appreciated.</p>