View source: R/forestplot_helpers.R
fpLegend | R Documentation |
This function encapsulates all the legend options that are used in the
forestplot
function. This is in order to limit the crowding
among the arguments for the forestplot
call.
fpLegend(
pos = "top",
gp = NULL,
r = unit(0, "snpc"),
padding = unit(ifelse(!is.null(gp), 3, 0), "mm"),
title = NULL
)
pos |
The position of the legend, either at the "top" or the "right" unless
positioned inside the plot. If you want the legend to be positioned inside the plot
then you have to provide a list with the same x & y qualities as |
gp |
The |
r |
The box can have rounded edges, check out |
padding |
The padding for the legend box, only used if box is drawn. This is the distance from the border to the text/boxes of the legend. |
title |
The title of the legend if any |
list
Returns a list with all the elements
Other forestplot functions:
forestplot()
,
fpColors()
,
fpDrawNormalCI()
,
fpShapesGp()
,
fp_add_lines()
,
fp_decorate_graph()
,
fp_insert_row()
,
fp_set_style()
,
fp_set_zebra_style()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.