pyredu | R Documentation |
This function generates a pyramid for a cntry x Time
pyredu(
df1,
Time,
area,
scen,
popunit = "Thousands",
caption = NULL,
nmlegend,
edu.nmlegend = NULL,
limits = NULL,
ipal = 1
)
area |
region (will be used for caption, if caption is NULL) |
scen |
specific scenario (will be used for caption, if caption is NULL) |
popunit |
unit of value (default '000) |
caption |
Full list else year, area, and scen will be pasted |
nmlegend |
heading of legend |
edu.nmlegend |
names of education categories NULL=takes names |
ipal |
if numeric, it uses colors from brewer; else, you can supply the names of the colors manually |
df |
with four colums age, sex (male/female), edu, value(e.g. population) |
year |
year |
pyramid
pyredu(df=df,year=2015,area="ARM",scen="Baseyear",nmlegend="Education",ipal=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.