Learn R Programming

growcurves (version 0.2.3.6)

plot.dpgrowmult: Produce model plots

Description

Builds model plots, including MCMC trace plots, analysis of session effects and subject growth curves

Usage

## S3 method for class 'dpgrowmult':
plot(x, plot.out = TRUE, ...)

Arguments

x
A dpgrowmult object
plot.out
A boolean object. If TRUE, plots are rendered. In either case, plots are stored
...
Ignored

Value

  • res a list object of class plot.dpgrowmm of 3 items:
  • plot.resultsggplot2 plot objects; see mcmcPlots.
  • dat.growcurveA data.frame containing fields c("fit","time","subject","trt") with P*T rows, where P is the length of subject and T = 10 are the number of in-subject predictions for each subject. This object may be used to construct additional growth curves using - see growplot.
  • dat.gcdataA data.frame containing fields c("fit","time","subject","trt") with N rows, where N are the number of subject-time cases. This object contains the actual data for all subjects used to co-plot with predicted growth curves.