View source: R/growthfd.plot.ApvRegVelocity.R
growthfd.plot.ApvRegVelocity | R Documentation |
This function plots a velocity curve, registered at population (model) apv in comparison with the mean curve.
growthfd.plot.ApvRegVelocity(data)
model |
Data obtained using growthfd.ApvRegVelocity |
Velocity at apv plot
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.