Produce a table and plot
Wraps or_plot, hr_plot, and
coefficient_plot and sends to the appropriate method depending
on the dependent variable type.
ff_plot(.data, dependent, explanatory, ...) finalfit_plot(.data, dependent, explanatory, ...)
.data |
Data frame. |
dependent |
Character vector of length 1. |
explanatory |
Character vector of any length: name(s) of explanatory variables. |
... |
Pass arguments |
A table and a plot using ggplot2
Other finalfit plot functions: coefficient_plot,
hr_plot, or_plot,
surv_plot
# Coefficient plot
explanatory = c("age.factor", "sex.factor", "obstruct.factor", "perfor.factor")
dependent = "nodes"
colon_s %>%
ff_plot(dependent, explanatory)
# Odds ratio plot
dependent = "mort_5yr"
colon_s %>%
ff_plot(dependent, explanatory)
# Hazard ratio plot
dependent = "Surv(time, status)"
colon_s %>%
ff_plot(dependent, explanatory, dependent_label = "Survival")Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.