plotResiduals {dMod}R Documentation

Plot residuals for a fitlist

Description

Plot residuals for a fitlist

Usage

plotResiduals(parframe, x, data, split = "condition", errmodel = NULL, ...)

Arguments

parframe

Object of class parframe, e.g. returned by mstrust

x

Prediction function returning named list of data.frames with names as data.

data

Named list of data.frames, i.e. with columns name, time, value and sigma.

split

List of characters specifying how to summarise the residuals by sqrt(res_i^2), split[1] used for x-axis, split[2] for grouping (color), and any additional for facet_wrap()

errmodel

object of type prdfn, the error model function.

...

Additional arguments for x

Value

A plot object of class ggplot with data.frame as attribute attr(P,"out").

Examples

## Not run: 
 # time axis:
 plotResiduals(myfitlist, g*x*p, data, 
    c("time","index","condition","name"), 
    conditions = myconditions[1:4])
 # condition axis (residuals summed over time for each observable and condition):
 plotResiduals(myfitlist, g*x*p, data,  c("condition","name","index"))

## End(Not run)

[Package dMod version 1.0.2 Index]