theme_survex function

Default Theme for survex plots

Default Theme for survex plots

set_theme_survex( default_theme = "drwhy", default_theme_vertical = default_theme ) theme_default_survex() theme_vertical_default_survex()

Arguments

  • default_theme: object - string ("drwhy" or "ema") or an object of ggplot theme class. Will be applied by default by survex to all horizontal plots
  • default_theme_vertical: object - string ("drwhy" or "ema") or an object of ggplot theme class. Will be applied by default by survex to all vertical plots

Returns

list with current default themes

Examples

old <- set_theme_survex("ema") library(survival) library(survex) model <- randomForestSRC::rfsrc(Surv(time, status) ~ ., data = veteran) exp <- explain(model) p_parts_lime <- predict_parts(exp, veteran[1, -c(3, 4)], type = "survlime") old <- set_theme_survex("drwhy") plot(p_parts_lime) old <- set_theme_survex(ggplot2::theme_void(), ggplot2::theme_void()) plot(p_parts_lime)
  • Maintainer: Mikołaj Spytek
  • License: GPL (>= 3)
  • Last published: 2023-10-24