pyr_ag | R Documentation |
This function generates a pyramid for a cntry x Time
pyr_ag(
res1,
ireg,
ivar = "pop",
iTime,
iiscen = NULL,
iscale = 1,
facet.scale = "fixed",
ititle.text = NULL,
icol = "xxx"
)
res1 |
with four colums age, sex (male/female), edu (optional, will be aggregated), value (agest will be replaced by age; ivar will be replaced by value) |
ireg |
region, this is needed for caption |
ivar |
variable to be plotted (default pop) |
iTime |
year, this is needed for caption |
iiscen |
specific scenario, empirical (then no scenario is needed) |
iscale |
unit of value (default 1 = '000, 1000 = millions, 1000000 - billions) |
facet.scale |
facet scale (default fixed) |
ititle.text |
full title text (default NULL) |
pyramid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.