Skip to contents

Plots the 5th, 50th and 95th percentiles of each simulated measure against age, for the simulated population and the NHANES reference, by sex.

Usage

plot_nhanes(comparison)

Arguments

comparison

Output of compare_nhanes().

Value

A ggplot object.

Examples

sim <- sample_nhanes(n = 200, ages = 2:17, seed = 1)
plot_nhanes(compare_nhanes(sim))