chart_hhs: Chart household hunger scale (HHS) indicators

View source: R/09-chart.R

chart_hhsR Documentation

Chart household hunger scale (HHS) indicators

Description

Chart household hunger scale (HHS) indicators

Usage

chart_hhs(
  x,
  save_chart = TRUE,
  filename = paste(tempdir(), "chart", sep = "/")
)

Arguments

x

Indicators dataset produced by create_op_all

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 plot of HHS 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 graphic device.

Examples

  # Create chart using indicators.ALL dataset
  chart_hhs(x = indicators.ALL)


validmeasures/ramOP documentation built on Jan. 6, 2023, 7:46 a.m.