Advanced Forest Plot Using 'grid' Graphics

A forest plot that allows for multiple confidence intervals per row, custom fonts for each text element, custom confidence intervals, text mixed with expressions, and more. The aim is to extend the use of forest plots beyond meta-analyses. This is a more general version of the original 'rmeta' package's forestplot() function and relies heavily on the 'grid' package.


A forest plot that allows for multiple confidence intervals per row, custom fonts for each text element, custom confidence intervals, text mixed with expressions, and more. The aim is to extend the use of forest plots beyond meta-analyses. This is a more general version of the original 'rmeta' package's forestplot function and relies heavily on the 'grid' package.

Due to the package's popularity I suggest that you start with asking questions on StackOverflow so that others can learn from your own problems. Add the tag r and forestplot so that others can quickly find the question.

All contributions are welcome. The package is managed at GitHub and I suggest that you start with creating an issue. If you feel that you're able to solve the coding on your own then fork the package and once you're done, create a pull request.

News

NEWS for the forestplot package

  • Changed forestplot function to S3 style (thanks Christian Röver)
  • Fixed bug with alignment for summary elements
  • When any of the inputs is missing for a line the line is skipped (issue #5)
  • Added checkmate for argument validation
  • Added option of just specifying the rows that the CI should be applied to (issue #7)
  • Added fpDrawBarCI (thanks Christian Röver)
  • Fixed xlog bug
  • Added a colgap option
  • Bug fix for plots wider than the div (Thanks Michael Obeda for reporting)
  • Changed new_page to default to TRUE
  • Removed warnings for compatibility
  • Fixed so that squared multiline tables should now follow color behavior
  • Added a bug fix for when number of colors isn't equal to the dimension of the input causing the box not to be drawn
  • Fixed bug concerning vertical offset for clippers
  • Fixed bug when specifying graphwidth
  • Added ability to tailor the tick text
  • Added vertices example to vignette
  • Line-type can be specified
  • Line endings can now be marked by a T vertice, this default for all line types other than 1
  • The arrow height defaults to the same height as the vertices
  • Added a grid option
  • Improved documentation
  • Multiple lines can now have NA values
  • Added ability to position the graph
  • Added ability to generate horizontal lines
  • Minor documentation changes
  • Separation from the Gmisc-package
  • Name change - forestplot2 is now just forestplot in order to allow a deprecated call within the Gmisc package without generating a conflict
  • The fontfamily arguments are now embedded in the txt_gp that takes input from the fpTxtGp function. The fonts for the labels/summaries can be specified down to the cell level.
  • If provided a vector of length two for the zero argumente you get an area for the zero-effect
  • There is a maximum colgap length for the box corresponding to the box height
  • confintNormalFn, confintSummaryFn, legendMarkerFn are now called fn.ci_norm, fn.ci_sum, fn.legend
  • Argument main in forestplot has changed to title

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")

1.7 by Max Gordon, 2 months ago


http://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  


Task views: Meta-Analysis


GPL-2 license


Depends on grid, magrittr, checkmate

Suggests testthat, abind, knitr, rmarkdown


Imported by Gmisc.

Depended on by Greg, bayesmeta, bmeta.


See at CRAN