ezcox: Easily Show Cox Forestplot in One Command

library(ezcox)
library(survival)
#> 
#> Attaching package: 'survival'
#> The following object is masked _by_ '.GlobalEnv':
#> 
#>     lung
show_forest(lung, covariates = c("sex", "ph.ecog"), controls = "age")
#> => Processing variable sex
#> ==> Building Surv object...
#> ==> Building Cox model...
#> ==> Done.
#> => Processing variable ph.ecog
#> ==> Building Surv object...
#> ==> Building Cox model...
#> ==> Done.
#> Please install the recent version of forestmodel firstly.
#> Run the following command:
#>   remotes::install_github("ShixiangWang/forestmodel")
#> Or
#>   remotes::install_git("https://gitee.com/ShixiangWang/forestmodel")
show_forest(lung, covariates = c("sex", "ph.ecog"), controls = "age", merge_models = TRUE)
#> => Processing variable sex
#> ==> Building Surv object...
#> ==> Building Cox model...
#> ==> Done.
#> => Processing variable ph.ecog
#> ==> Building Surv object...
#> ==> Building Cox model...
#> ==> Done.
#> Please install the recent version of forestmodel firstly.
#> Run the following command:
#>   remotes::install_github("ShixiangWang/forestmodel")
#> Or
#>   remotes::install_git("https://gitee.com/ShixiangWang/forestmodel")
show_forest(lung,
  covariates = c("sex", "ph.ecog"), controls = "age", merge_models = TRUE,
  drop_controls = TRUE
)
#> => Processing variable sex
#> ==> Building Surv object...
#> ==> Building Cox model...
#> ==> Done.
#> => Processing variable ph.ecog
#> ==> Building Surv object...
#> ==> Building Cox model...
#> ==> Done.
#> Please install the recent version of forestmodel firstly.
#> Run the following command:
#>   remotes::install_github("ShixiangWang/forestmodel")
#> Or
#>   remotes::install_git("https://gitee.com/ShixiangWang/forestmodel")
show_forest(lung,
  covariates = c("sex", "ph.ecog"), controls = "age", merge_models = TRUE,
  vars_to_show = "sex"
)
#> => Processing variable sex
#> ==> Building Surv object...
#> ==> Building Cox model...
#> ==> Done.
#> => Processing variable ph.ecog
#> ==> Building Surv object...
#> ==> Building Cox model...
#> ==> Done.
#> Please install the recent version of forestmodel firstly.
#> Run the following command:
#>   remotes::install_github("ShixiangWang/forestmodel")
#> Or
#>   remotes::install_git("https://gitee.com/ShixiangWang/forestmodel")