Draws a forest plot showing the results of omitting each study in turn, using the grid graphics system.
# S3 method for metainf
forest(
x,
layout = gs("layout"),
prediction = x$prediction,
overall = x$overall,
leftcols = NULL,
rightcols = NULL,
leftlabs = NULL,
rightlabs = NULL,
lab.NA = gs("lab.NA"),
col = NULL,
print = NULL,
type = "square",
digits = NULL,
backtransf = x$backtransf,
big.mark = gs("big.mark"),
main = "Leave-One-Out Meta-Analysis",
filename = NULL,
path = NULL,
device = NULL,
device.args = NULL,
units = "in",
height = NULL,
width = NULL,
dpi = 300,
dev.off = NULL,
new = TRUE,
...
)Invisibly returns a list with information about the forest plot,
including the selected columns (leftcols, rightcols),
their headings (leftlabs, rightlabs), formatted results,
and graphical settings (see forest.meta).
Element data contains the dataset used to create the forest plot.
An object of class metainf.
A character string specifying the layout of the
forest plot (see forest.meta).
A logical indicating whether prediction intervals should be printed.
A logical indicating whether overall results should be shown.
A character vector specifying columns to be printed on the
left side of the forest plot or a logical value; see
forest.meta.
A character vector specifying columns to be printed on the
right side of the forest plot or a logical value; see
forest.meta.
A character vector specifying labels for columns on the left side of the forest plot (see Details).
A character vector specifying labels for columns on the right side of the forest plot (see Details).
A character string to label missing values.
A named list specifying colours.
A colour can also be supplied directly to set col$col.
See Details for defaults specific to this function and
meta-formatting for information on the elements.
A named list controlling displayed information.
See Details for defaults specific to this function and
meta-formatting for information on the elements.
A character string or vector specifying how to plot treatment effects and confidence intervals for meta-analysis results.
A named list specifying digits used for displayed results; a
scalar value is also accepted.
See Details for defaults specific to this function and
meta-formatting for information on the elements.
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.
A title for the forest plot.
File name to store forest plot.
Path of the directory to save plot to: `path` and `filename` are combined to create the fully qualified file name. Defaults to the working directory.
Device to use. Can either be a device function (e.g.,
png), or one of "eps", "ps",
"tex" (pictex), "pdf", "jpeg", "tiff",
"png", "bmp", "svg" or "wmf" (Windows only).
By default, the device is guessed based on the `filename` extension.
List with additional graphical parameters passed on to graphics function.
Units of the `width` and `height` of the file containing the
forest plot. One of "in" (for inches, default), "cm",
"mm", or "px" (for pixels), can be abbreviated.
Height of the graphics file.
Width of the graphics file.
Plot resolution.
A logical to specify whether current graphics device should be shut down.
A logical value indicating whether a new figure should be printed in an existing graphics window.
Additional graphical arguments (passed on to
forest.meta).
Guido Schwarzer [email protected]
Each row of the forest plot represents a meta-analysis after omitting one
study from the original meta-analysis. Results are shown in the order of
the omitted studies. The pooling model is determined by argument
pooled in metainf. Prediction intervals and additional
result columns can be selected when drawing the forest plot.
A forest plot, also called a confidence interval plot, is drawn in the
active graphics window using the grid graphics system. To save the plot,
specify a file name with argument filename; the graphics device is
selected from the file extension by default (see forest.meta
for examples).
The named list print determines the default result columns.
Argument layout determines their default placement, which can be
overridden with leftcols and rightcols.
Arguments leftcols and rightcols can be used to specify
columns printed on the left or right side, respectively. Arguments
leftlabs and rightlabs can be used to provide headings for
these columns. Use NA for a column heading to retain its default
label.
Formatting defaults are the same as in forest.metacum.
General defaults and supported elements are described in
meta-formatting.
forest.metacum, forest.meta,
metainf, settings.meta
data(Fleiss1993bin)
ma <- metabin(d.asp, n.asp, d.plac, n.plac,
data = Fleiss1993bin, studlab = study, sm = "RR", method = "I")
ma
metainf(ma)
metainf(ma, pooled = "random")
forest(metainf(ma))
forest(metainf(ma, pooled = "random"))
forest(metainf(ma, pooled = "random", prediction = TRUE))
Run the code above in your browser using DataLab