Skip to contents

Internal helper used by plot_stadia to draw a single person's pubertal stage trajectory, interpolated along the reference curves, on the current plot.

Usage

plot_stadia_data(ages, pubs, sex, type, colors, ref)

Arguments

ages

Vector of ages at measurement.

pubs

Data frame with the pubertal stage variables for this person; tv is the raw testicular volume in ml (see plot_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.

Value

Invisibly returns NULL; the function draws on the current graphics device.