Add multiple concentric circles to a ggplot object
Source:R/circular_plotting.R
add_multiple_circles.RdThis function creates a list of layers for concentric circles with specified radii that can be added to a ggplot object. The function takes optional arguments to customize the appearance of the circles.
Usage
add_multiple_circles(
radii = c(0.25, 0.5, 0.75),
circle_color = "grey20",
circle_alpha = 1,
circle_size = 0.5
)Examples
library(ggplot2)
ggplot() + coord_fixed() + add_multiple_circles()