Learn R Programming

⚠️There's a newer version (3.1.5) of this package.Take me there.

The Forestplot 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.

Questions

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.

Contributing

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.

Copy Link

Version

Install

install.packages('forestplot')

Monthly Downloads

12,135

Version

1.8

License

GPL-2

Maintainer

Last Published

June 1st, 2019

Functions in forestplot (1.8)

heightDetails.xaxis

Gets the height for an x-axis object
fpColors

A function for the color elements used in forestplot()
HRQoL

Regression coefficients and confidence intervals from HRQoL study
prFpConvertMultidimArray

Converts a 2D or 3D array to mean, lower, upper
forestplot

Draws a forest plot
fpTxtGp

Get font settings for forestplot
getTicks

Ticks for plot axis
prFpGetGraphTicksAndClips

A helper function to forestplot
prFpFindWidestGrob

Finds the widest grob in the current list of grobs
prFpGetConfintFnList

Get a function list
prFpDrawLines

Draws the horizontal lines
prFpGetLayoutVP

Get the main foresplot
prFpGetLegendBoxPosition

Converts legend position to a standard position
forestplot-package

Package description
prPushMarginViewport

Pushes viewport with margins
prGetTextGrobCex

Just a simple acces to the gp$cex parameter
prFpDrawLine

Draws a straight line
prFpXrange

Gets the x-axis range
prFpGetLegendGrobs

Gets the forestplot legend grobs
prFpGetLines

Prepares the hrzl_lines for the plot
prFpDrawLegend

Draw the forestplot legend
prFpPrintXaxis

Plots the x-axis for forestplot
prFpGetLabels

Gets the forestplot labels
prGparMerge

prFpValidateLabelList

Validate the forestplot label list
prFpFetchRowLabel

Get the label
prPopulateList

Populate a list corresponding to matrix specs
prListRep

An alternativ to rep()
prGridPlotTitle

Adds a title to the plot
prFpPrepareLegendMarker

Prepares the legend marker function
prFpPrintLabels

Plots the labels
fpLegend

A function for the legend used in forestplot()
fpDrawNormalCI

Draw standard confidence intervals