plot.subjDiv: Plot a raw data trajectory

Description Usage Arguments

View source: R/plot_trajectory.R

Description

Plot a raw data trajectory

Usage

1
2
3
4
## S3 method for class 'subjDiv'
plot(x, subjid, y_var = "htcm", center = FALSE,
  x_range = NULL, width = 500, height = 520, hover = NULL, p = 100 *
  pnorm(-3:0), x_units = c("days", "months", "years"), ...)

Arguments

x

an object of class "subDiv" obtained from by_subject

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 x$data to show on hover for each point (only variables with non-NA data will be shown)

p

centiles at which to draw the WHO polygons

x_units

units of age x-axis (days, months, or years)

...

additional parameters passed to figure


hafen/hbgd documentation built on March 1, 2020, 5:31 p.m.