尝试在一个数据集中绘制多个圆圈,似乎 10 是最大圆圈数。如何绘制超过 10 个圆圈?
library(tidyverse)
library(ggforce)
circles <- data.frame(
x0 = rep(1:3, 10),
y0 = rep(1:3, each = 10),
r = seq(0.1, 1, length.out = 30)
)
ggplot() +
geom_circle(aes(x0 = x0, y0 = y0, r = r, fill = r), data = circles) +
coord_fixed()