View source: R/add_inline_forest_plot.R
| add_inline_forest_plot | R Documentation |
This function works with HTML output from the gt package only. Adds an in-line forest plot to a summary table.
add_inline_forest_plot(
x,
header = "**Forest Plot**",
spec_pointrange.args = NULL
)
x |
a gtsummary object |
header |
string indicating column header of new forest plot column.
Default is |
spec_pointrange.args |
named list of arguments that will be passed to
|
Estimates from tbl_regression() and tbl_uvregression() that have
been exponentiated are shown on the log scale.
gtsummary object
Other gtsummary-related functions:
add_sparkline(),
as_ggplot(),
bold_italicize_group_labels(),
logistic_reg_adj_diff(),
style_tbl_compact(),
tbl_likert(),
theme_gtsummary_msk()
library(gtsummary)
# Example 1 ----------------------------------
add_inline_forest_plot_ex1 <-
lm(mpg ~ cyl + am + drat, mtcars) %>%
tbl_regression() %>%
add_inline_forest_plot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.