I am using ggforce package, an extension of ggplot2 to label a plot.
library(tidyverse)
library(ggforce)
ggplot(iris, aes(Petal.Length, Petal.Width)) +
geom_mark_circle(aes(color = Species,
label = Species),
label.fill = NA,
# 背景颜色变成透明
# The fill colour for the annotation box
label.fontface = 'plain',
# 避免加粗
expand = unit(0.2, "mm")
) +
geom_point() +
theme(
legend.position = 'none'
) +
theme_minimal()
I want to make the circle smaller. I read the help document and try several values on the argument expand but it does works.
Does anyone know it?

