View source: R/forest.netcomparison.R
forest.netcomparison | R Documentation |
Draws a forest plot in the active graphics window (using grid graphics system).
## S3 method for class '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 class 'netcomparison'
plot(x, ...)
x |
An object of class |
pooled |
A character string indicating whether results for the
common ( |
leftcols |
A character vector specifying (additional) columns
to be plotted on the left side of the forest plot or a logical
value (see |
leftlabs |
A character vector specifying labels for
(additional) columns on left side of the forest plot (see
|
rightcols |
A character vector specifying (additional) columns
to be plotted on the right side of the forest plot or a logical
value (see |
rightlabs |
A character vector specifying labels for
(additional) columns on right side of the forest plot (see
|
nchar.comps |
A numeric defining the minimum number of characters used to create unique names for components. |
digits |
Minimal number of significant digits for treatment
effects and confidence intervals, see |
digits.stat |
Minimal number of significant digits for tests
of overall effect, see |
digits.pval |
Minimal number of significant digits for p-value
of overall effects, see |
smlab |
A label printed at top of figure. By default, text indicating either common or random effects model is printed. |
backtransf |
A logical indicating whether results should be
back transformed in forest plots. If |
lab.NA |
A character string to label missing values. |
equal.size |
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 |
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.
Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de
netcomparison
, netcomb
,
discomb
, forest.meta
# Examples: example(netcomparison)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.