chart_income: Chart income indicators

View source: R/09-chart.R

chart_incomeR Documentation

Chart income indicators

Description

Chart income indicators

Usage

chart_income(
  x.male,
  x.female,
  save_chart = TRUE,
  filename = paste(tempdir(), "chart", sep = "/")
)

Arguments

x.male

Male subset of indicator dataset

x.female

Female subset of indicator dataset

save_chart

Logical. Should chart be saved? Default is TRUE.

filename

Prefix to add to output chart filename or a directory path to save output to instead of working directory. Defaults to a path to a temporary directory and a filename starting with chart. Ignored if save_chart is FALSE.

Value

Bar chart of sources of income by sex in PNG format saved in current working directory or in a specified directory if filename is a path unless when save_chart is FALSE in which case chart is shown in current graphics device.

Examples

  # Create chart using indicators.FEMALES and indicators.MALES
  # dataset
  chart_income(x.male = indicators.MALES,
               x.female = indicators.FEMALES)


rapidsurveys/oldr documentation built on April 15, 2024, 11:18 a.m.