forest_viewport | R Documentation |
forest_viewport(
tbl,
width_row_names = NULL,
width_columns = NULL,
width_forest = grid::unit(1, "null"),
gap_column = grid::unit(1, "lines"),
gap_header = grid::unit(1, "lines"),
mat_form = NULL
)
tbl |
( |
width_row_names |
( |
width_columns |
( |
width_forest |
( |
gap_column |
( |
gap_header |
( |
mat_form |
( |
A viewport tree.
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)
)
v <- forest_viewport(tbl)
grid::grid.newpage()
showViewport(v)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.