View source: R/forest.metainf.R
| forest.metainf | R Documentation |
Draws a forest plot showing the results of omitting each study in turn, using the grid graphics system.
## S3 method for class '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,
...
)
x |
An object of class |
layout |
A character string specifying the layout of the
forest plot (see |
prediction |
A logical indicating whether prediction intervals should be printed. |
overall |
A logical indicating whether overall results should be shown. |
leftcols |
A character vector specifying columns to be printed on the
left side of the forest plot or a logical value; see
|
rightcols |
A character vector specifying columns to be printed on the
right side of the forest plot or a logical value; see
|
leftlabs |
A character vector specifying labels for columns on the left side of the forest plot (see Details). |
rightlabs |
A character vector specifying labels for columns on the right side of the forest plot (see Details). |
lab.NA |
A character string to label missing values. |
col |
A named list specifying colours.
A colour can also be supplied directly to set |
print |
A named list controlling displayed information.
See Details for defaults specific to this function and
|
type |
A character string or vector specifying how to plot treatment effects and confidence intervals for meta-analysis results. |
digits |
A named list specifying digits used for displayed results; a
scalar value is also accepted.
See Details for defaults specific to this function and
|
backtransf |
A logical indicating whether results should be
back transformed in forest plots. If |
big.mark |
A character used as thousands separator. |
main |
A title for the forest plot. |
filename |
File name to store forest plot. |
path |
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 |
Device to use. Can either be a device function (e.g.,
|
device.args |
List with additional graphical parameters passed on to graphics function. |
units |
Units of the 'width' and 'height' of the file containing the
forest plot. One of |
height |
Height of the graphics file. |
width |
Width of the graphics file. |
dpi |
Plot resolution. |
dev.off |
A logical to specify whether current graphics device should be shut down. |
new |
A logical value indicating whether a new figure should be printed in an existing graphics window. |
... |
Additional graphical arguments (passed on to
|
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.
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.
Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.