plot_anthro_age_distribution: Plot Age Distribution of Nutritional Status of Children

View source: R/plot_anthro_age_distribution.R

plot_anthro_age_distributionR Documentation

Plot Age Distribution of Nutritional Status of Children

Description

Plot Age Distribution of Nutritional Status of Children

Usage

plot_anthro_age_distribution(
  df,
  index,
  file_path = NULL,
  wdth = NULL,
  hght = NULL,
  title_name = NULL
)

Arguments

df

Inputs a dataframe with anthropometric data that has already been processed and standardized by healthyr::format_nut_health_results function.

index

Inputs a character value specifying which anthropometric index or result to plot. Options include wfhz, hfaz, wfaz, mfaz, muac, or cgam.

file_path

Inputs an optional character value specifying the file path location to save an image of the plot. Recommended to specify as a .jpg or .png file.

wdth

Inputs an optional numeric value for the width of the image.

hght

Inputs an optional numeric value fo the height of the image.

title_name

Inputs an optional character value for the title of the plot.

Value

Returns a ggplot object.

Examples

## Not run: plot_anthro_age_distribution(df, index = "wfhz",
file_path = "myplots/wfhz_age_distribution.jpg")
## End(Not run)

SaeedR1987/healthyr documentation built on July 4, 2023, 11:17 p.m.