plot: Graphical Display For Linear Mixed Models

Description Usage Arguments Details Value

Description

Display fitted values or residual plot for the mean, variance, and correlation structure. Can also display quantile-quantile plot relative to the normal distribution.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## S3 method for class 'lmm'
plot(
  x,
  type = "fit",
  type.residual = "normalized",
  by.time = TRUE,
  ci = TRUE,
  plot = TRUE,
  ci.alpha = 0.2,
  mean.size = c(3, 1),
  size.text = 16,
  ...
)

Arguments

x

a lmm object.

type

[character] the type of plot: "fit", "qqplot", "correlation", "scatterplot", "scatterplot2", "partial".

type.residual

[character] the type of residual to be used. Not relevant for type="fit". By default, normalized residuals are used except when requesting a partial residual plot.

by.time

[logical] should a separate plot be made at each repetition or a single plot over all repetitions be used? Only relevant for type="qqplot", type="scatterplot", and type="scatterplot2".

ci

[logical] should confidence intervals be displayed?

plot

[logical] should the plot be displayed?

ci.alpha

[numeric, 0-1] Transparency parameter used to display the confidence intervals.

mean.size

[numeric vector of length 2] size of the point and line for the mean trajectory.

size.text

[numeric, >0] size of the font used to displayed text when using ggplot2.

...

additional argument passed to residuals.lmm or autoplot.lmm.

Details

Call autoplot.lmm when codetype=="fit" and link(residuals.lmm) for the other types.

Value

A list with two elements


LMMstar documentation built on Jan. 3, 2022, 5:09 p.m.