powered by
The plot() function extracts x$table_body and passes the it to GGally::ggcoef_plot() along with a formatting options.
plot()
x$table_body
GGally::ggcoef_plot()
# S3 method for tbl_regression plot(x, remove_header_rows = TRUE, remove_reference_rows = FALSE, ...)# S3 method for tbl_uvregression plot(x, remove_header_rows = TRUE, remove_reference_rows = FALSE, ...)
# S3 method for tbl_uvregression plot(x, remove_header_rows = TRUE, remove_reference_rows = FALSE, ...)
'tbl_regression' or 'tbl_uvregression' object
logical indicating whether to remove header rows for categorical variables. Default is TRUE
TRUE
logical indicating whether to remove reference rows for categorical variables. Default is FALSE.
FALSE
arguments passed to GGally::ggcoef_plot(...)
GGally::ggcoef_plot(...)
a ggplot
experimental
# NOT RUN { glm(response ~ marker + grade, trial, family = binomial) %>% tbl_regression( add_estimate_to_reference_rows = TRUE, exponentiate = TRUE ) %>% plot() # }
Run the code above in your browser using DataLab