Add a portable theme for SIR ternary plots
theme_sir(...)
... | additional arguments to pass |
---|
theme to add to ggtern plots
library(ggplot2) library(dplyr) library(ggtern) EpiCompare::hagelloch_raw %>% filter(SEX %in% c("male", "female")) %>% ggplot(., aes(y = tI, z = tR, color = SEX)) + geom_aggregate() + coord_tern() + labs(x = "S", y = "I", z = "R", color = "Gender") + theme_sir()#>