
Theme for periodic Kodom plots
theme_kodom_periodic.RdDesigned for use with geom_kodom_periodic() and
coord_kodom_periodic(). Suppresses the radial (y) axis — which shows
lane numbers that are not meaningful to readers — while keeping the angular
(x) axis so that time labels added via ggplot2::scale_x_continuous() are
visible around the ring.
Value
A ggplot2::theme() object.
Examples
# \donttest{
library(ggplot2)
df <- data.frame(
subject_id = rep(1:5, each = 4),
time = rep(1:4, 5),
visit_month = rep(1:4, 5),
value = rep(1:4, 5),
hba1c = rep(1:4, 5),
arm = rep(c("Treatment", "Control"), c(12, 8))
)
ggplot(df, aes(x = visit_month, id = subject_id, colour = hba1c)) +
geom_kodom_periodic(period = 12) +
scale_x_continuous(breaks = 1:12, labels = month.abb, limits = c(0, 12)) +
scale_colour_kodom() +
coord_kodom_periodic() +
theme_kodom_periodic()
# }