Create a Viewport Tree for the Forest Plot
Arguments
- tbl
(
rtable
)- width_row_names
(
grid::unit
)
Width of row names- width_columns
(
grid::unit
)
Width of column spans- width_forest
(
grid::unit
)
Width of the forest plot- gap_column
(
grid::unit
)
Gap width between the columns- gap_header
(
grid::unit
)
Gap width between the header- mat_form
matrix print form of the table
Examples
library(grid)
tbl <- rtable(
header = rheader(
rrow("", "E", rcell("CI", colspan = 2)),
rrow("", "A", "B", "C")
),
rrow("row 1", 1, 0.8, 1.1),
rrow("row 2", 1.4, 0.8, 1.6),
rrow("row 3", 1.2, 0.8, 1.2)
)
# \donttest{
v <- forest_viewport(tbl)
grid::grid.newpage()
showViewport(v)
# }