wormplot2d_gg: Worm Plot ggplot version

View source: R/misc.R

wormplot2d_ggR Documentation

Worm Plot ggplot version

Description

Worm plot ggplot version, 2 covariates

Usage

wormplot2d_gg(
  m = NULL,
  residuals = NULL,
  age = NA,
  x2 = NA,
  name.x2,
  n.inter.age = 1,
  n.inter.x2 = 1,
  y.limits = c(-1, 1)
)

Arguments

m

a gamlss model

residuals

nlormalized quantile residuals

age

numeric vector of ages

x2

numeric vector of second covariate

name.x2

name of x2 for use in graphics

n.inter.age

number of age intervals or cut points

n.inter.x2

number of x2 intervals or cut points

y.limits

limits of the y-axis

Details

creates a wormplot for a gamlss model or a given vector of normalized quantile residuals, either for all residuals or grouped by age intervals

Value

ggplot object


childsds documentation built on April 4, 2025, 1:49 a.m.