pyr_ag: Population Pyramid in MSDem ??

View source: R/pyramid.R

pyr_agR Documentation

Population Pyramid in MSDem ??

Description

This function generates a pyramid for a cntry x Time

Usage

pyr_ag(
  res1,
  ireg,
  ivar = "pop",
  iTime,
  iiscen = NULL,
  iscale = 1,
  facet.scale = "fixed",
  ititle.text = NULL,
  icol = "xxx"
)

Arguments

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)

Value

pyramid


kcsamir/mdpop documentation built on June 15, 2025, 12:53 a.m.