mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
Deploying to gh-pages from @ agdamsbo/FreesearchR@54dd332cd8 🚀
This commit is contained in:
parent
4cf4bd0499
commit
6d545337de
328 changed files with 12930 additions and 1662 deletions
60
reference/plot.tbl_regression.md
Normal file
60
reference/plot.tbl_regression.md
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
# Regression coef plot from gtsummary. Slightly modified to pass on arguments
|
||||
|
||||
Regression coef plot from gtsummary. Slightly modified to pass on
|
||||
arguments
|
||||
|
||||
## Usage
|
||||
|
||||
``` r
|
||||
# S3 method for class 'tbl_regression'
|
||||
plot(
|
||||
x,
|
||||
plot_ref = TRUE,
|
||||
remove_header_rows = TRUE,
|
||||
remove_reference_rows = FALSE,
|
||||
...
|
||||
)
|
||||
```
|
||||
|
||||
## Arguments
|
||||
|
||||
- x:
|
||||
|
||||
(`tbl_regression`, `tbl_uvregression`)
|
||||
A 'tbl_regression' or 'tbl_uvregression' object
|
||||
|
||||
- plot_ref:
|
||||
|
||||
(scalar `logical`)
|
||||
plot reference values
|
||||
|
||||
- remove_header_rows:
|
||||
|
||||
(scalar `logical`)
|
||||
logical indicating whether to remove header rows for categorical
|
||||
variables. Default is `TRUE`
|
||||
|
||||
- remove_reference_rows:
|
||||
|
||||
(scalar `logical`)
|
||||
logical indicating whether to remove reference rows for categorical
|
||||
variables. Default is `FALSE`.
|
||||
|
||||
- ...:
|
||||
|
||||
arguments passed to `ggstats::ggcoef_plot(...)`
|
||||
|
||||
## Value
|
||||
|
||||
ggplot object
|
||||
|
||||
## Examples
|
||||
|
||||
``` r
|
||||
if (FALSE) { # \dontrun{
|
||||
mod <- lm(mpg ~ ., default_parsing(mtcars))
|
||||
p <- mod |>
|
||||
gtsummary::tbl_regression() |>
|
||||
plot(colour = "variable")
|
||||
} # }
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue