pers_or_plot {ggfacto} | R Documentation |
Modified odd ratios plot from 'finalfit'
Description
Modified odd ratios plot from 'finalfit'
Usage
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,
...
)
Arguments
.data |
Data frame. |
dependent |
Character vector of length 1: name of dependent variable (must have 2 levels). |
explanatory |
Character vector of any length: name(s) of explanatory variables. |
random_effect |
Character vector of length 1, name of random effect variable. |
factorlist |
Option to provide output directly from |
glmfit |
Option to provide output directly from |
confint_type |
One of |
remove_ref |
Logical. Remove reference level for factors. |
break_scale |
Manually specify x-axis breaks in format |
column_space |
Adjust table column spacing. |
dependent_label |
Main label for plot. |
prefix |
Plots are titled by default with the dependent variable. This adds text before that label. |
suffix |
Plots are titled with the dependent variable. This adds text after that label. |
table_text_size |
Alter font size of table text. |
title_text_size |
Alter font size of title text. |
plot_opts |
A list of arguments to be appended to the ggplot call by |
table_opts |
A list of arguments to be appended to the ggplot table call by
|
return_df |
To return the dataframe. |
... |
Other parameters. |
Value
The odd ratios plot as a ggplot2
object.