Description Usage Arguments Details Value Author(s)
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
.
1 2 3 |
x |
object of class |
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 |
naive |
logical. If |
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.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.
Response measurement plots for reconstructed and observed data.
Rune hoff
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.