wormplot2d_gg | R Documentation |
Worm plot ggplot version, 2 covariates
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)
)
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 |
creates a wormplot for a gamlss model or a given vector of normalized quantile residuals, either for all residuals or grouped by age intervals
ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.