I am creating a plot that draws circles using ggforce::geom_circle
and I'm trying to change the alpha value for the lines. It seems that geom_circle
has an alpha argument that affects the fill of the circle, but not the outline.
For example:
library(ggforce)
library(ggplot2)
circles <- data.frame(
x0 = rep(1:3, 3),
y0 = rep(1:3, each = 3),
r = seq(0.1, 1, length.out = 9)
)
# Use coord_fixed to ensure true circularity
ggplot() +
geom_circle(aes(x0 = x0, y0 = y0, r = r, color = r), data = circles) +
coord_fixed()
The code produces several circles, Im just trying to change the alpha value of the circle lines, but I cant seem to figure out a way to do it.