Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

prFpGetLayoutVP

Get the main foresplot


Description

The layout makes space for a legend if needed

Usage

prFpGetLayoutVP(lineheight, labels, nr, legend_layout = NULL)

Arguments

lineheight

Height of the graph. By default this is auto and adjustes to the space that is left after adjusting for x-axis size and legend. Sometimes it might be desireable to set the line height to a certain height, for instance if you have several forestplots you may want to standardize their line height, then you set this variable to a certain height, note this should be provided as a unit object. A good option is to set the line height to unit(2, "cm"). A third option is to set line height to "lines" and then you get 50 % more than what the text height is as your line height

labels

The labels

nr

Number of rows

legend_layout

A legend layout object if applicable

Value

viewport Returns the viewport needed


forestplot

Advanced Forest Plot Using 'grid' Graphics

v1.10.1
GPL-2
Authors
Max Gordon [aut, cre], Thomas Lumley [aut, ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.