79120339

Date: 2024-10-24 04:19:53
Score: 2
Natty:
Report link

In the ggalign package, I have added a pie layer function. We can draw pie chart without depend on the coord_polar.

    library(ggalign)
    set.seed(123)
    data <- expand.grid(X = factor(1:20), Y = factor(1:18))
    data$Category <- rep(c("A", "B", "C"), each = 120)
    data$Value <- runif(360)
    ggplot(data, aes(x = X, y = Y, angle = Value * 360, fill = Category)) +
        geom_pie() +
        theme_void()

enter image description here

Reasons:
  • Probably link only (1):
  • Contains signature (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Yun