plotmuac: Plots MUAC z-scores and percentiles on references curves.

Description Usage Arguments Value References See Also Examples

View source: R/plot_muac.R

Description

Plots individual MUAC z-scores and percentiles on standardized growth references using the LMS method for children and adolescents aged 3 months to 19 years.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
plotmuac(
  age,
  sex,
  muac,
  age_range = "3-60",
  graphtype = "z-scores",
  lwd = 1,
  line.color = "skyblue",
  line.type = "solid",
  shape = 2,
  size.label = 2,
  size.score = 4,
  Notes = FALSE
)

Arguments

age

a numeric value (in months) between 3 and 228 depending on the age_range.

sex

preferably numeric (1 = Male, 2 = Female). Strings (such as "Male", "Female") can also be used.

muac

a numeric mid upper arm circumference value in cm.

age_range

age range in months. Input has to be characters. Options allowed are: "3-60" which is the default, or "60-228".

graphtype

A character input is required: "z-scores" or "percentiles".

lwd

Line width allows you to specify a numeric value that control the width of the line plots. By dafult, it is set to 1.

line.color

The color of the lines. It is set to "skyblue" by default.

line.type

Type of line such as: "solid", "dotted", "dashed", "blank", "dotdash", "twodash", "longdash"

shape

of the individual point (marker)

size.label

size of the label for calculated z-score or percentile

size.score

refers to the size of the text for the calculated z-scores (-3,-2,-1,0,1,2,3) or the percentiles.

Notes

Is FALSE by default. If set to TRUE, 'notes' will be printed on the console about the nature, range of variables allowed and number of records processed.

Value

Plots z-scores or percentiles with a mark indicating where the individual person lies within the standardized reference curves.

References

Mramba L., Ngari M., Mwangome M., Muchai L., Bauni E., Walker A.S., Gibb D.M., Fegan G. and Berkley J.A. (2017) A growth reference for mid upper arm circumference for age among school age children and adolescents, and validation for mortality: growth curve construction and longitudinal cohort study BMJ 2017;358:j3423 <doi:10.1136/bmj.j3423>

<https://www.bmj.com/content/358/bmj.j3423>

<https://www.bmj.com/content/358/bmj.j3423/related#datasupp>

<https://www.who.int/childgrowth/standards/Technical_report.pdf>

<https://www.who.int/childgrowth/standards/ac_for_age/en/>

See Also

indivmuaczs, muaczs, bmizs, muacz.bmiz and plotbmi.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
g1 <- plotmuac(age = 48, sex = 2, muac = 16.2, line.color = "orange")

g2 <- plotmuac(age = 48, sex = 2, muac = 16.2, graphtype = "percentiles",
              line.color = "orange")

g3 <- plotmuac(age = c(24, 36, 48, 59), sex = 1, muac = c(13, 14.5, 16.1, 21.7))

g4 <- plotmuac(age = c(24, 36, 48, 59), sex = 1, muac = c(13, 14.5, 16.1, 21.7),
              graphtype = "percentiles")

g5 <- plotmuac(age = c(61, 73, 181, 217), sex = 1, muac = c(13, 15.7, 34.1, 43.9),
              age_range = "60-228")

g6 <- plotmuac(age = c(61, 73, 181, 217), sex = 1, muac = c(13, 15.7, 34.1, 43.9),
              age_range = "60-228", graphtype = "percentiles")

MUACz documentation built on July 16, 2020, 9:07 a.m.

Related to plotmuac in MUACz...