FreesearchR/man/plot.tbl_regression.Rd

36 lines
819 B
Text
Raw Normal View History

2025-02-19 13:17:16 +01:00
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/regression_plot.R
\name{plot.tbl_regression}
\alias{plot.tbl_regression}
\title{Regression coef plot from gtsummary. Slightly modified to pass on arguments}
\usage{
2025-03-19 09:14:36 +01:00
\method{plot}{tbl_regression}(
x,
plot_ref = TRUE,
remove_header_rows = TRUE,
remove_reference_rows = FALSE,
...
)
2025-02-19 13:17:16 +01:00
}
\arguments{
\item{x}{(\code{tbl_regression}, \code{tbl_uvregression})\cr
A 'tbl_regression' or 'tbl_uvregression' object}
\item{...}{arguments passed to \code{ggstats::ggcoef_plot(...)}}
}
\value{
ggplot object
}
\description{
Regression coef plot from gtsummary. Slightly modified to pass on arguments
}
\examples{
\dontrun{
2025-03-19 09:14:36 +01:00
mod <- lm(mpg ~ ., default_parsing(mtcars))
2025-02-19 13:17:16 +01:00
p <- mod |>
gtsummary::tbl_regression() |>
plot(colour = "variable")
}
}