plot_velocity: Plot a fitted trajectory's velocity

Description Usage Arguments Examples

View source: R/plot_trajectory.R

Description

Plot a fitted trajectory's velocity

Usage

1
2
plot_velocity(x, width = 500, height = 520, x_units = c("days", "months",
  "years"), ...)

Arguments

x

an object returned from fit_trajectory

width

width of the plot

height

height of the plot

x_units

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

...

additional parameters passed to figure

Examples

1
2
3
mod <- get_fit(cpp, y_var = "wtkg", method = "rlm")
fit <- fit_trajectory(subset(cpp, subjid == 2), mod)
plot_velocity(fit)

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