theme_swimlane.Rd
A ggplot theme for swimlane plots
theme_swimlane(extra_margin_r = 15, ...)
Number (of pt units) to add to right margin, most often to account for text annotations
Further arguments to ggplot2::theme()
library(ggplot2)
patient_disposition %>%
order_swimlane(subject, weeks_on_study, cohort) %>%
ggplot() +
geom_swimlane(subject, weeks_on_study, cohort) +
ggsci::scale_fill_jco() +
theme_swimlane(legend.position = c(.8, .1)) %+replace%
theme(axis.title.x = element_blank())