plot {gtsummary} | R Documentation |
Plot Regression Coefficients
Description
The plot()
function extracts x$table_body
and passes the it to
ggstats::ggcoef_plot()
along with formatting options.
Usage
## S3 method for class 'tbl_regression'
plot(x, remove_header_rows = TRUE, remove_reference_rows = FALSE, ...)
## S3 method for class 'tbl_uvregression'
plot(x, remove_header_rows = TRUE, remove_reference_rows = FALSE, ...)
Arguments
x |
( |
remove_header_rows |
(scalar |
remove_reference_rows |
(scalar |
... |
arguments passed to |
Details
Value
a ggplot
Examples
glm(response ~ marker + grade, trial, family = binomial) |>
tbl_regression(
add_estimate_to_reference_rows = TRUE,
exponentiate = TRUE
) |>
plot()
[Package gtsummary version 2.0.0 Index]