| radial.brma | R Documentation |
radial.brma creates a radial (Galbraith) plot for a
fitted brma object. The plot displays each study as a point with
precision on the x-axis and the standardized effect size on the z-axis.
Without centering, a line from the origin through any point has slope equal
to the observed effect size. With centering, slopes are relative to the
pooled estimate. An arc on the right side maps standardized values back to
the effect size scale.
## S3 method for class 'brma'
radial(
x,
center = FALSE,
xlim,
zlim,
xlab,
zlab,
atz,
aty,
steps = 7,
level = 95,
digits = 2,
transf,
targs,
plot_type = "base",
...
)
## S3 method for class 'brma'
galbraith(x, ...)
x |
a fitted brma object. Must be an intercept-only model (no moderators or scale regression). |
center |
logical indicating whether to center the plot at the
pooled estimate. When |
xlim |
x-axis limits. If not specified, limits are computed from data. |
zlim |
z-axis limits. If not specified, limits are computed from data. |
xlab |
title for the x-axis. If not specified, a default label is used. |
zlab |
title for the z-axis. If not specified, a default label is used. |
atz |
numeric vector of positions for tick marks on the z-axis (left vertical axis). If not specified, positions are chosen automatically. |
aty |
numeric vector of effect size values to mark on the y-axis arc (right side). If not specified, values are chosen automatically. |
steps |
integer specifying the number of tick marks on the y-axis arc
when |
level |
numeric value between 0 and 100 specifying the confidence level
for the confidence band and pooled-effect CI arc. Defaults to |
digits |
integer specifying the number of decimal places for y-axis
arc labels. Defaults to |
transf |
optional transformation function applied to the y-axis arc
labels (e.g., |
targs |
optional list of additional arguments passed to the
|
plot_type |
whether to use a base plot |
... |
additional graphical arguments to customize the plot appearance:
|
The radial (Galbraith) plot transforms each study's effect size and standard error into a point in precision-standardized space:
x-axis: precision = 1/\sqrt{v_i + \hat{\tau}^2}
z-axis: standardized effect = y_i/\sqrt{v_i + \hat{\tau}^2}
Under the random-effects model, studies consistent with the pooled effect
should fall within the sloped parallelogram confidence band around the
pooled-effect line. The arc on the right side allows reading individual
effect sizes by projecting from the origin through a point to the arc; when
center = TRUE, the plotted slope is relative to the pooled effect.
This function requires an intercept-only model; radial plots are not meaningful for meta-regression or location-scale models where the pooled effect varies across studies.
galbraith() is a same-argument alias for radial().
radial.brma returns NULL invisibly if
plot_type = "base" or a ggplot object if plot_type = "ggplot".
If as_data = TRUE, returns a list with the computed plot data
including: points, refline, band, arc,
arc_ticks, ci_arc, ci_ticks, xlim, and
zlim.
Galbraith, R. F. (1988). Graphical display of estimates having differing standard errors. Technometrics, 30(3), 271-281.
Galbraith, R. F. (1994). Some applications of radial plots. Journal of the American Statistical Association, 89(428), 1232-1242.
funnel.brma(), pooled_effect.brma(), pooled_heterogeneity.brma()
## Not run:
if (requireNamespace("metadat", quietly = TRUE) &&
requireNamespace("metafor", quietly = TRUE)) {
data(dat.bcg, package = "metadat")
dat <- metafor::escalc(
measure = "RR",
ai = tpos,
bi = tneg,
ci = cpos,
di = cneg,
data = dat.bcg
)
fit <- brma(yi = yi, vi = vi, data = dat, measure = "RR")
radial(fit)
radial(fit, center = TRUE)
radial(fit, plot_type = "ggplot")
galbraith(fit)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.