View source: R/plot_trajectory.R
Plot a raw data trajectory
1 2 3 4 |
x |
an object of class "subDiv" obtained from |
subjid |
subject id of subject to plot |
y_var |
name of y variable to model (usually an anthropometric measure or z-score scaled anthropometric measure) |
center |
should the trajectory be centered around the median WHO standard? This is equivalent to plotting the age difference score (like height-for-age difference - HAD) |
x_range |
a vector specifying the range (min, max) that the superposed growth standard should span on the x-axis |
width |
width of the plot |
height |
height of the plot |
hover |
variable names in |
p |
centiles at which to draw the WHO polygons |
x_units |
units of age x-axis (days, months, or years) |
... |
additional parameters passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.