View source: R/theme_swimlane.R
theme_swimlane | R Documentation |
A ggplot theme for swimlane plots
theme_swimlane(extra_margin_r = 15, ...)
extra_margin_r |
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())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.