gs_cdf | R Documentation |
Cumulative Distribution Plots for Pediatric Growth Standards
gs_cdf(
metric,
male,
age,
height,
length,
source = getOption("pedbp_pgs_source", "CDC")
)
metric |
a character string denoting which growth metric to plot |
male |
integer value, 1 = male, 0 = female |
age |
numeric age, in months |
length , height |
in centimeters |
source |
a character string denoting the data source providing the
parameters needed for the estimate. Valid values are "CDC" and "WHO". This
can be set explicitly, or by using the |
a ggplot
object
Distribution functions:
bmi_for_age
head_circumference_for_age
height_for_age
length_for_age
weight_for_age
weight_for_length
weight_for_height
Plotting functions:
gs_chart
gs_cdf
Vignette:
vignette(topic = "growth-standards", package = "pedbp")
# Plot a # 13 year old male with a bmi of 21
gs_chart(metric = "bmi_for_age", male = 1) +
ggplot2::geom_point(x = 13 * 12, y = 21)
gs_cdf(metric = "bmi_for_age", male = 1, age = 13*12) +
ggplot2::geom_point(x = 21, y = p_bmi_for_age(21, male = 1, age = 13*12))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.