ggplot2 中 annotate() 的默认单位是什么?

What is the default unit of annotate() in ggplot2?

我一直在寻找似乎无处不在的东西。我想知道 ggplot2 中 annotate() 的默认单位大小是多少,因为我无法在 annotate() 中将大小设置为特定单位。

例如,我尝试了以下方法,但没有成功:

annotate(geom = "text", label = "Am I a bird?",
           x = "ABC", y = 2375/2,
           family = "Arial", size = unit(10, "mm"), colour = "white")

Error in checkNA("fontsize") : 
  mixture of missing and non-missing values for fontsize

感谢您的帮助!

它说here默认单位是mm。所以如果你想从点到毫米乘以 72.27 / 25.4.