Draws a forest plot in the active graphics window (using grid graphics system).
# S3 method for metainf
forest(
x,
prediction = x$prediction,
overall = x$overall,
just.addcols = "right",
smlab = "Leave-One-Out Meta-Analysis",
type = "square",
layout = gs("layout"),
lab.NA = ".",
backtransf = x$backtransf,
big.mark = gs("big.mark"),
digits = gs("digits.forest"),
digits.pval = gs("digits.pval"),
digits.tau2 = gs("digits.tau2"),
digits.tau = gs("digits.tau"),
digits.I2 = gs("digits.I2"),
digits.cid = gs("digits.cid"),
digits.percent = 1,
col = gs("col.study"),
col.bg = ifelse(type == "diamond", gs("col.diamond"), gs("col.square")),
col.border = ifelse(type == "diamond", gs("col.diamond.lines"), gs("col.square.lines")),
col.bg.predict = gs("col.predict"),
col.border.predict = gs("col.predict.lines"),
addrows.below.overall = 1L * details,
details = gs("forest.details"),
...
)
An object of class metainf
.
A logical indicating whether prediction intervals should be printed.
A logical indicating whether overall results should be shown.
Justification of text for additional columns (possible values: "left", "right", "center").
A label for the summary measure (printed at top of figure).
A character string or vector specifying how to plot treatment effects and confidence intervals for cumulative meta-analysis results.
A character string specifying the layout of the
forest plot (see forest.meta
).
A character string to label missing values.
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 used as thousands separator.
Minimal number of significant digits for treatment
effects, see print.default
.
Minimal number of significant digits for p-values.
Minimal number of significant digits for between-study variance.
Minimal number of significant digits for square root of between-study variance.
Minimal number of significant digits for I-squared statistic.
Minimal number of significant digits for
CID / decision thresholds, see print.default
.
Minimal number of significant digits for
probabilities, printed as percentages, see print.default
.
The colour for cumulative meta-analysis results (only considered
if type = "square"
).
The background colour for squares and diamonds of cumulative meta-analysis results.
The colour for the outer lines of squares and diamonds of cumulative meta-analysis results.
The background colour for prediction intervals of cumulative meta-analysis results.
The colour for the outer lines of prediction intervals of cumulative meta-analysis results.
A numeric value indicating how many empty rows are printed between meta-analysis results and meta-analysis details.
A logical specifying whether details on statistical methods should be printed.
Additional graphical arguments (passed on to
forest.meta
).
Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de
A forest plot, also called confidence interval plot, is drawn in
the active graphics window. Internally, R function
forest.metacum
is called to produce the forest plot.
forest.metacum
, forest.meta
,
metainf
, settings.meta
data(Fleiss1993bin)
m1 <- metabin(d.asp, n.asp, d.plac, n.plac,
data = Fleiss1993bin, studlab = study, sm = "RR", method = "I")
m1
metainf(m1)
metainf(m1, pooled = "random")
forest(metainf(m1))
forest(metainf(m1, pooled = "random"))
forest(metainf(m1, pooled = "random", prediction = TRUE))
Run the code above in your browser using DataLab