Forest plot to show subgroup estimates of network meta-analysis.
# S3 method for subgroup.netmeta
forest(
x,
pooled = ifelse(x$x$random, "random", "common"),
equal.size = gs("equal.size"),
leftcols = c("studlab", "Q", "df.Q", "pval.Q"),
leftlabs = c("Comparison /\nSubgroup", "Q", "d.f.", "p-value"),
rightcols = c("effect", "ci", "k", if (pooled == "random") "tau"),
rightlabs = c(NA, NA, "Number of\nStudies", if (pooled == "random") "Tau"),
calcwidth.subgroup = gs("calcwidth.subgroup"),
digits = gs("digits.forest"),
digits.Q = gs("digits.Q"),
digits.pval.Q = gs("digits.pval.Q"),
digits.tau2 = gs("digits.tau2"),
digits.tau = gs("digits.tau"),
sep.trts = " vs ",
backtransf = x$x$backtransf,
lab.NA = ".",
smlab,
col.subgroup = "black",
...
)# S3 method for subgroup.netmeta
plot(x, ...)
An object of class subgroup.netmeta
.
A character string indicating whether results for the
common ("common"
) or random effects model ("random"
)
should be plotted. Can be abbreviated.
A logical indicating whether all squares should be of equal size. Otherwise, the square size is proportional to the precision of estimates.
A character vector specifying columns to be plotted on the left side of the forest plot (see Details).
A character vector specifying labels for columns on left side of the forest plot.
A character vector specifying columns to be plotted on the right side of the forest plot (see Details).
A character vector specifying labels for columns on right side of the forest plot.
A logical indicating whether text with comparison labels should be considered to calculate width of the column with treatment labels.
Minimal number of significant digits for treatment
effects and confidence intervals, see print.default
.
Minimal number of significant digits for
heterogeneity statistic Q, see print.default
.
Minimal number of significant digits for
p-value of heterogeneity test, see print.default
.
Minimal number of significant digits for
between-study variance \(\tau^2\), see print.default
.
Minimal number of significant digits for \(\tau\), the square root of the between-study variance \(\tau^2\).
A character string used to label treatment comparisons.
A logical indicating whether results should be
back transformed in forest plots. If backtransf = TRUE
,
results for sm = "OR"
are presented as odds ratios rather
than log odds ratios, for example.
A character string to label missing values.
A label printed at top of figure. By default, text indicating either common or random effects model is printed.
The colour to print information on subgroups.
Additional arguments for forest.meta
function.
Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de
A forest plot, also called confidence interval plot, is drawn in the active graphics window.
The arguments leftcols
and rightcols
can be used to
specify columns which are plotted on the left and right side of the
forest plot, respectively. If argument rightcols
is
FALSE
, no columns will be plotted on the right side.
For more information see help page of forest.meta
function.
subgroup.netmeta
, netmeta
,
forest.meta