Usage
## S3 method for class 'sitar':
plot(x, opt = "dv", labels, apv = FALSE, xfun, yfun, subset = NULL,
abc = c(a = 0, b = 0, c = 0), add = FALSE, nlme = FALSE, ...)
## S3 method for class 'sitar':
lines(x, ...)
Arguments
opt
character string containing a subset of letters corresponding to the options: 'd' for fitted Distance curve, 'v' for fitted Velocity curve,
'e' for fitted fixed Effects distance curve,
'f' for individual Fitted growth curves, 'u' for Unadjusted individua
labels
optional character vector containing plot labels for x
, y
and y
velocity from the original SITAR model. The first two elements can alternatively be provided via par
parame apv
optional logical specifying whether or not to calculate the age at peak velocity from the velocity curve. If TRUE, age at peak velocity is calculated as the age when the second derivative of the fitted curve changes sign (after applying xfun
xfun
optional function to be applied to x
prior to plotting.
yfun
optional function to be applied to y
prior to plotting.
subset
optional logical vector of length x
defining a subset of data
rows to be plotted.
abc
character string defining an id
level, or a list of values labelled a, b and c, e.g. abc=list(a=1, b=0.1, c=-0.1), where the values of a, b and c are random effects defining an individual growth curve. If a, b or c are missing their values ar
add
optional logical defining whether the plot is pre-existing (TRUE) or new (FALSE). TRUE is equivalent to using lines
.
nlme
optional logical which set TRUE plots the model as an nlme
object, using plot.nlme
arguments.
...
Further graphical parameters (see par
) may also be supplied as arguments, e.g. axis labels xlab
and ylab
, line type lty
, line width lwd
, and color col
. For the velocity (y2) plo