Modified odd ratios plot from `finalfit`
pers_or_plot(
.data,
dependent,
explanatory,
random_effect = NULL,
factorlist = NULL,
glmfit = NULL,
confint_type = NULL,
remove_ref = FALSE,
break_scale = NULL,
column_space = c(-0.5, 0, 0.2),
dependent_label = NULL,
prefix = "",
suffix = ": OR (95% CI, p-value)",
table_text_size = 5,
title_text_size = 18,
plot_opts = NULL,
table_opts = NULL,
return_df = FALSE,
...
)
The odd ratios plot as a ggplot2
object.
Data frame.
Character vector of length 1: name of dependent variable (must have 2 levels).
Character vector of any length: name(s) of explanatory variables.
Character vector of length 1, name of random effect variable.
Option to provide output directly from summary_factorlist()
.
Option to provide output directly from glmmulti()
and glmmixed()
.
One of c("profile", "default")
for GLM models or
c("default", "Wald", "profile", "boot")
for glmer models
.
Note "default" == "Wald"
.
Logical. Remove reference level for factors.
Manually specify x-axis breaks in format c(0.1, 1, 10)
.
Adjust table column spacing.
Main label for plot.
Plots are titled by default with the dependent variable. This adds text before that label.
Plots are titled with the dependent variable. This adds text after that label.
Alter font size of table text.
Alter font size of title text.
A list of arguments to be appended to the ggplot call by "+"
.
A list of arguments to be appended to the ggplot table call by
"+"
.
To return the dataframe.
Other parameters.