A small set of functions for making visuals with ggplot2. Includes minimalist themes with transparent backgrounds and a suite of tools for creating survival curves with risk tables.
ggrisktable(): A simple wrapper function which calculates the numbers at risk for a survival model and a given set of time points then creates a ggplot2 table with them.geom_stepconfint(): Produces a step function confidence interval for survival curves. Essentially the ggplot2::geom_step() for confidence intervals which ggplot2 elects not to provide.theme_basic(): A ggplot2 theme for plots which removes most background elements.theme_risk(): A ggplot2 theme for risk tables which removes most background elements.append_table(): Aligns axes and combines a ggplot2 plot and table into a single plot. Can handle legends.