chart_muac: Distribution of MUAC (overall and by sex)

View source: R/09-chart.R

chart_muacR Documentation

Distribution of MUAC (overall and by sex)

Description

Distribution of MUAC (overall and by sex)

Usage

chart_muac(
  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. Default is a path to a temporary directory and a filename starting with chart. Ignored if save_chart is FALSE.

Value

Histogram of MUAC distribution in PNG format and saved in the 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 on current graphics device.

Examples

  # Create MUAC histogram using indicators.ALL dataset
  chart_muac(x = indicators.ALL)


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