| theme_kodom_circular | R Documentation |
Fully minimal Cartesian theme for geom_kodom_circular(): no axis text,
ticks, or grid lines. Reference rings are drawn by the geom itself as
annotation layers, so this theme suppresses all panel grid elements.
theme_kodom_circular(base_size = 12)
base_size |
Base font size (default 12). |
Unlike the original coord_polar()-based approach, geom_kodom_circular()
performs its coordinate transformation inside the stat and renders in
ordinary Cartesian space. This means panel.grid.major.y lines would
appear as horizontal rules, not concentric circles — so both major axes
are suppressed here.
A ggplot2::theme() object.
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 = time, id = subject_id, colour = value)) +
geom_kodom_circular() +
scale_colour_kodom() +
coord_fixed() +
theme_kodom_circular()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.