plot.SaemixData {saemix}R Documentation

Plot of longitudinal data

Description

This function will plot a longitudinal dataframe contained in an SaemixData object. By default it produces a spaghetti plot, but arguments can be passed on to modify this behaviour.

Usage

## S3 method for class 'SaemixData'
plot(x, y, ...)

## S3 method for class 'SaemixSimData'
plot(x, y, irep = -1, prediction = FALSE, ...)

Arguments

x

an SaemixData object or an SaemixSimData object

y

unused, present for compatibility with base plot function

...

additional arguments to be passed on to plot (titles, legends, ...)

irep

which replicate datasets to use in the mirror plot (defaults to -1, causing a random simulated dataset to be sampled from the nsim simulated datasets)

prediction

if TRUE, plot the predictions without residual variability (ypred instead of ysim). Defaults to FALSE.

Details

this function can also be used to visualise the predictions for simulated values of the individual parameters, using the ypred element instead of the ysim element normally used here


[Package saemix version 3.3 Index]