Learn R Programming

OLScurve (version 0.2.0)

subjplot: Plot individually estimated parameters

Description

A plotting function for displaying the individuals trajectories and their modelled functional form. Useful for detecting aberrant individual trajectories.

Usage

subjplot(object, ...)
"subjplot" (object, layout = NULL, prompt = TRUE, ...)

Arguments

object
an object of class OLScurve
layout
a variable to be passed to xyplot to adjust the graphical layout
prompt
a logical variable indicating whether devAskNewPage(ask=TRUE) should be called
...
additional arguments to be passed

Examples

Run this code
## Not run: 
# data <- t(t(matrix(rnorm(1000),200)) + 1:5)
# mod <- OLScurve(~ time, data = data)
# subjplot(mod)
# 
# ##quadratic
# data <- t(t(matrix(rnorm(1000),200)) + (0:4)^2)
# mod2 <- OLScurve(~ time + I(time^2), data = data)
# subjplot(mod2)
# 
# 
# ## End(Not run)

Run the code above in your browser using DataLab