growthfd.plot.RegVelocities: Plot velocity boxplots registered on apv

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

growthfd.plot.RegVelocitiesR Documentation

Plot velocity boxplots registered on apv

Description

This function plots boxplots in time of measurements, after registration of the individual on population apv.

Usage

growthfd.plot.RegVelocities(populationData, individualData)

Arguments

populationData

Data frame for population box plots

individualData

Data frame for the individual

Value

GGPlot2 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])
b <- growthfd.RegVelocities(model.bgs.m, fit$par, d$x[m])
p<- growthfd.plot.RegVelocities(b$population, b$individual)
x11()
p

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