Skip to contents

Create a forest plot

The data gives the layout of the plot, forest draws the table and the confidence intervals.

forest()
Forest plot

Add to the plot

These take the plot as their first argument, so they can be chained with the pipe.

set_xaxis()
Set the x-axis
set_labs()
Set the labels of a forest plot
scale_sizes()
Scale point sizes by weights
set_style()
Set the style of a forest plot
forest_style()
Forest plot style

Edit the plot

Change the cells of a plot that is already built, by row and column.

edit_plot()
Edit forest plot
add_text()
Add text to forest plot
insert_text()
Insert text to forest plot
add_border()
Add border to cells
add_grob()
Add grob in cells

Draw the confidence intervals

The functions given to fn_ci and fn_summary of forest, and an example of writing your own.

makeci()
Create confidence interval grob
make_summary()
Create pooled summary diamond shape
make_boxplot()
Create horizontal boxplot grob

Draw and save

print(<forestplot>) plot(<forestplot>)
Draw plot
print(<forest_style>)
Print a forest plot style
get_wh()
Get width and height of the forestplot

Superseded

Kept so that code written before version 1.2.0 keeps working, see ?forest_theme for the settings of forest_style.

forest_theme()
Forest plot default theme