How to wrap around the polar coordinate limits in ggplot2?
问题 I have a circular space where angles 0 and 360 are equivalent. I want to plot rectangles in this space such that rectangles can cross this value. However, I am having trouble with ggplot2. base <- ggplot() + scale_x_continuous(breaks = seq(45, 360, 45), limits = c(0, 360)) + scale_y_continuous(breaks = seq(0, 1, 0.2), limits = c(0, 1)) + coord_polar(theta = "x", start = 1.5 * pi, direction = -1) 1. Attempt to plot with values exceeding xlim: base + geom_rect(aes(xmin = 340, xmax = 380, ymin =