Learn R Programming

gtsummary (version 1.6.2)

plot: Plot Regression Coefficients

Description

The plot() function extracts x$table_body and passes the it to GGally::ggcoef_plot() along with a formatting options.

Usage

# 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, ...)

Value

a ggplot

Arguments

x

'tbl_regression' or 'tbl_uvregression' object

remove_header_rows

logical indicating whether to remove header rows for categorical variables. Default is TRUE

remove_reference_rows

logical indicating whether to remove reference rows for categorical variables. Default is FALSE.

...

arguments passed to GGally::ggcoef_plot(...)

Details

lifecycle::badge("experimental")