plot.flim: Plot function for flim objects.

Description Usage Arguments Details Value Author(s)

View source: R/plot.flim.R

Description

Can be used to plot the imputed data. Either one can plot mean responses, or another option is to plot individual trajectories in a spaghetti plot. For plot options for model fits, see flimList.

Usage

1
2
3
## S3 method for class 'flim'
plot(x, response, grouping = NULL, ylim = NULL, col = NULL, naive = T,
 lty = 1:2, ptype = "mean", ylab = "Response", xlab = "Times", ...)

Arguments

x

object of class "flim"

response

name of a longitudinal response

grouping

optional group/factor variable used in the model.

ylim

plot limits for the y-axis. Default is autogenerating suitable limits.

col

Optional colors for each level of the varialbe grouping.

naive

logical. If TRUE the observed mean response is plotted as well.

lty

Should be left to default, but may be specified if needed. The default is that observed values are full drawn, and hypothetical values are stipulated.

ptype

specifies the plot type, options are "mean" which is default, or "spa" for spaghetti plots of all individual trajectories.

ylab

label of y-axis

xlab

label of x-axis

...

additional arguments passed to plot.

Details

plot.flim is used to either plot mean trajectories for longitudinal responses or individual trajectories. Users need to specify which response variable should be plotted with the response argument. The mean response may be split into several trajectories (with separate coloring) corresponding to the different levels of a factor variable, by specifying the grouping argument. Both response and grouping should be entered with quotation marks, e.g grouping="treatment". The col argument can be used to determine the colors of plots for different levels of the grouping variable, e.g col=c("red", "blue") for a dichotomous variable, but may also be used without any grouping to specify the color of the plot. Any other arguments that can be passed to plot can be entered. See example on usage at the bottom of flim help file.

Value

Response measurement plots for reconstructed and observed data.

Author(s)

Rune hoff


FLIM documentation built on May 29, 2017, 11:30 p.m.