Advanced Forest Plot Using 'grid' Graphics

Allows the creation of forest plots with advanced features, such as multiple confidence intervals per row, customizable fonts for individual text elements, and flexible confidence interval drawing. It also supports mixing text with mathematical expressions. The package extends the application of forest plots beyond traditional meta-analyses, offering a more general version of the original 'rmeta' package’s forestplot() function. It relies heavily on the 'grid' package for rendering the plots.


CRAN_Status_Badge

Forest plot package

The forestplot package enables the creation of advanced forest plots, offering features such as multiple confidence intervals per row, customizable fonts for individual text elements, and custom confidence interval drawing functions. Additionally, it supports text mixed with mathematical expressions, extending the use of forest plots beyond traditional meta-analyses. This package is a more general version of the original 'rmeta' package's forestplot function, with heavy reliance on the 'grid' package for graphical elements.

One of the newer features is the ability to have text span multiple table columns via the fp_span() helper, making it easy to centre sub‑headers across adjacent columns. The label system has also been hardened so that you can include arbitrary grid grob objects in labeltext; they will be plotted in the appropriate cell without triggering errors.

Questions

Given the package's popularity, it's recommended to ask questions on StackOverflow where others can benefit from the shared knowledge. Please use the r-forestplot tag to ensure your question is easily discoverable.

Contributing

All contributions are welcome! The package is managed on GitHub. To contribute, consider starting by creating an issue. If you have a solution, feel free to fork the repository, make your changes, and submit a pull request when you're ready.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("forestplot")

3.2.0 by Max Gordon, 7 months ago


https://gforge.se/packages/


Report a bug at https://github.com/gforge/forestplot/issues


Browse source code at https://github.com/cran/forestplot


Authors: Max Gordon [aut, cre] , Thomas Lumley [aut, ctb]


Documentation:   PDF Manual  


GPL-2 license


Depends on grid, checkmate, abind

Suggests dplyr, Gmisc, Greg, knitr, purrr, rlang, rmarkdown, rmeta, rms, testthat, tibble, tidyr, tidyselect, tidyverse


Imported by BayesCACE, CPBayes, Gmisc, IDMIR, MetaStan, NMA, baggr, causalPAF, chest, door, impower133, multifear, rADA.

Depended on by Greg, bayesmeta, ofGEM.

Suggested by pkr.


See at CRAN