pyredu: Population Pyramid in MSDem NEEDS updating

View source: R/pyredu.r

pyreduR Documentation

Population Pyramid in MSDem NEEDS updating

Description

This function generates a pyramid for a cntry x Time

Usage

pyredu(
  df1,
  Time,
  area,
  scen,
  popunit = "Thousands",
  caption = NULL,
  nmlegend,
  edu.nmlegend = NULL,
  limits = NULL,
  ipal = 1
)

Arguments

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

Value

pyramid

Examples

pyredu(df=df,year=2015,area="ARM",scen="Baseyear",nmlegend="Education",ipal=1)

kcsamir/mdpop documentation built on Feb. 16, 2025, 7:48 a.m.