eda_qqpool | R Documentation |
eda_qqpool
generates multi-panel pooled values QQ plots
for a continuous variable conditioned on a grouping variable. This plot is
most frequently used to compare residuals to pooled residuals.
eda_qqpool(
dat,
x,
fac,
p = 1L,
tukey = FALSE,
q.type = 5,
resid = TRUE,
stat = mean,
show.par = FALSE,
plot = TRUE,
grey = 0.6,
pch = 21,
nrow = 1,
p.col = "grey40",
p.fill = "grey60",
size = 1,
text.size = 0.8,
tail.pch = 21,
tail.p.col = "grey70",
tail.p.fill = NULL,
tic.size = 0.8,
alpha = 0.8,
q = FALSE,
tails = FALSE,
med = FALSE,
inner = 0.75,
title = FALSE,
ylab = NULL,
...
)
dat |
Data frame. |
x |
Continuous variable. |
fac |
Categorical variable. |
p |
Power transformation to apply to the continuous variable. |
tukey |
Boolean determining if a Tukey transformation should be adopted
( |
q.type |
An integer between 4 and 9 selecting one of the six quantile
algorithms (See |
resid |
Boolean determining if residuals should be plotted. Residuals
are computed using the |
stat |
Statistic to use if residuals are to be computed. Currently
|
show.par |
Boolean determining if power transformation should be displayed in the plot. |
plot |
Boolean determining if plot should be generated. |
grey |
Grey level to apply to plot elements (0 to 1 with 1 = black). |
pch |
Point symbol type. |
nrow |
Define the number of rows for panel layout. |
p.col |
Color for point symbol. |
p.fill |
Point fill color passed to |
size |
Point symbol size (0-1). |
text.size |
Size for category text above the plot. |
tail.pch |
Tail-end point symbol type (See |
tail.p.col |
Tail-end color for point symbol (See |
tail.p.fill |
Tail-end point fill color passed to |
tic.size |
Size of tic labels (defaults to 0.8). |
alpha |
Point transparency (0 = transparent, 1 = opaque). Only
applicable if |
q |
Boolean determining if grey box highlighting the |
tails |
Boolean determining if points outside of the |
med |
Boolean determining if median lines should be drawn. |
inner |
Fraction of mid-values to highlight in |
title |
Title to display. If set to |
ylab |
Y and X axes labels. |
... |
Not used |
The function will generate a multi-panel pooled values QQ plots. The function defaults to a pooled residuals QQ plots which is the most common use for this kind of plot.
Returns a dataframe with x
(or its residuals if
resid = TRUE
), fac
, the f-value (by fac
group), and
the matching pooled residuals.
William S. Cleveland. Visualizing data. (1993)
# Default output
singer <- lattice::singer
eda_qqpool(singer, height, voice.part, nrow = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.