plotResiduals: Plot residuals for a fitlist

Description Usage Arguments Value Examples

View source: R/plots.R

Description

Plot residuals for a fitlist

Usage

1
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

1
2
3
4
5
6
7
8
9
## 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)

dMod documentation built on Jan. 27, 2021, 1:07 a.m.