Draw a person's pubertal stage trajectory on a puberty stadia plot
Source:R/plot-stadia.R
plot_stadia_data.RdInternal helper used by plot_stadia to draw a single
person's pubertal stage trajectory, interpolated along the reference
curves, on the current plot.
Arguments
- ages
Vector of ages at measurement.
- pubs
Data frame with the pubertal stage variables for this person;
tvis the raw testicular volume in ml (seeplot_stadia).- sex
"M"or"F".- type
Logical vector of length 3 indicating which pubertal stage variables to plot.
- colors
Character vector of length 3 with the colors for the three pubertal stage variables.
- ref
Reference data, as produced by
nl1997_lines.