Description Usage Arguments See Also
Generates a flattened version of a detrended normal Q-Q plot (a worm plot) for regression diagnostics.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | flatworm(object, ...)
## S3 method for class 'lm'
flatworm(object, cols = NULL, ...)
## S3 method for class 'map'
flatworm(object, cols = NULL, y = NULL, ...)
## S3 method for class 'map2stan'
flatworm(object, cols = NULL, y = NULL, ...)
## S3 method for class 'data.frame'
flatworm(object, residual_z, cols = NULL, ylim = 6,
points = TRUE, lines = FALSE, loess = TRUE, cubic = FALSE,
z_cubic = FALSE, ...)
|
object |
The object to generate diagnostics from, such as a model (for
|
... |
Additional arguments passed onto Flatworm implements a variant of a worm plot (See e.g. Model-specific versions of |
cols |
Bare (unquoted) name of a column to facet over for generating multiple flatworm plots (i.e. small multiples). If cols is numeric, it will be split into quartiles; if is it a factor, into levels. |
y |
|
residual_z |
Bare name of the normalized residuals in |
ylim |
Limits of the y axis to plot. If a numeric vector of length 2, specifies
min and max. If numeric vector of length 1, specifies abs(min) and max. If
|
points |
Show residuals as points |
lines |
Show residuals as lines |
loess |
Show a |
cubic |
Show a cubic fit to detrended residuals. |
z_cubic |
Show a cubic fit to detrended residuals in z-space, translated onto the
SE scale used by flatworm. This is the same fit used by |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.