Draws a forest plot in the active graphics window (using grid graphics system).
# S3 method for netcomparison
forest(
x,
pooled = ifelse(x$random, "random", "common"),
leftcols = c("studlab", "treat1", "treat2"),
leftlabs = c("Comparison", "Trt 1", "Trt 2"),
rightcols = c("effect", "ci", "statistic", "pval"),
rightlabs = c(NA, NA, "z", "p-value"),
nchar.comps = x$nchar.trts,
digits = gs("digits.forest"),
digits.stat = gs("digits.stat"),
digits.pval = gs("digits.pval"),
smlab = NULL,
backtransf = x$backtransf,
lab.NA = gs("lab.NA"),
equal.size = gs("equal.size"),
...
)# S3 method for netcomparison
plot(x, ...)
An object of class netcomparison.
A character string indicating whether results for the
common ("common") or random effects model ("random")
should be plotted. Can be abbreviated.
A character vector specifying (additional) columns
to be plotted on the left side of the forest plot or a logical
value (see forest.meta help page for details).
A character vector specifying labels for
(additional) columns on left side of the forest plot (see
forest.meta help page for details).
A character vector specifying (additional) columns
to be plotted on the right side of the forest plot or a logical
value (see forest.meta help page for details).
A character vector specifying labels for
(additional) columns on right side of the forest plot (see
forest.meta help page for details).
A numeric defining the minimum number of characters used to create unique names for components.
Minimal number of significant digits for treatment
effects and confidence intervals, see print.default.
Minimal number of significant digits for tests
of overall effect, see print.default.
Minimal number of significant digits for p-value
of overall effects, see print.default.
A label printed at top of figure. By default, text indicating either common or random effects model is printed.
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 logical indicating whether all squares should be of equal size. Otherwise, the square size is proportional to the precision of estimates.
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. For more information see help page of
forest.meta function.
netcomparison, netcomb,
discomb, forest.meta
# Examples: example(netcomparison)
Run the code above in your browser using DataLab