growthfd.plot.ApvRegVelocity: Plot a velocity curve registered at apv

View source: R/growthfd.plot.ApvRegVelocity.R

growthfd.plot.ApvRegVelocityR Documentation

Plot a velocity curve registered at apv

Description

This function plots a velocity curve, registered at population (model) apv in comparison with the mean curve.

Usage

growthfd.plot.ApvRegVelocity(data)

Arguments

model

Data obtained using growthfd.ApvRegVelocity

Value

Velocity at apv plot

Examples

filename <- system.file("extdata", "data.csv", package="growthfd", mustWork=TRUE)
csv <- read.csv(filename)
d <- data.frame('id'=as.factor(csv[,'id']), 'x'=csv[,'age'], 'y'=csv[,'height'])
m <- d$id == 'John'
fit <- growthfd.fit(model.bgs.m, age=d$x[m], height=d$y[m])
data<-growthfd.ApvRegVelocity(model.bgs.m, fit$par)
p<-growthfd.plot.ApvRegVelocity(data)
x11()
p

ondrej-klima/growthfd documentation built on Jan. 4, 2023, 10:37 a.m.