View source: R/growthfd.plot.RegVelocities.R
growthfd.plot.RegVelocities | R Documentation |
This function plots boxplots in time of measurements, after registration of the individual on population apv.
growthfd.plot.RegVelocities(populationData, individualData)
populationData |
Data frame for population box plots |
individualData |
Data frame for the individual |
GGPlot2 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]) b <- growthfd.RegVelocities(model.bgs.m, fit$par, d$x[m]) p<- growthfd.plot.RegVelocities(b$population, b$individual) x11() p
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.