| insert_text | R Documentation |
This function can be used to insert text into a forest plot. Remember to adjust for the row number if you have added text before, including the header. This is achieved by inserting new row(s) into the plot and will affect subsequent row numbers. A text vector can be inserted into multiple columns or rows.
insert_text(
plot,
text,
row = NULL,
col = NULL,
part = c("body", "header"),
just = c("center", "left", "right"),
before = TRUE,
gp = gpar(),
padding = unit(1, "mm"),
parse = FALSE
)
plot |
A forest plot object. |
text |
A character or expression vector, see |
row |
Row to insert the text, this will be ignored if the |
col |
A numeric value or vector indicating the columns the text will be added. The text will span over the column if a vector is given. |
part |
Part to insert text, |
just |
The justification of the text, |
before |
Indicating the text will be inserted before or after the row. |
gp |
An object of class |
padding |
Padding of the text, default is |
parse |
Logical, behaviour for parsing text as plotmath, see
|
A gtable object.
gpar textGrob gtable_add_grob
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.