我的目标是根据坐标比例调整注释的高度。
为了做到这一点,我想知道annotate
函数中 size
的单位是什么?
(下面我设置了size = 10
,看起来大小约为0.0125左右。)
library(ggplot2)
ggplot() +
geom_point(aes(1, 1)) +
annotate(
"text", x = 1, y = 1, label = "My label",
size = 10,
hjust = 0
)
此内容由 reprex 软件包 (v0.3.0) 于 2020-11-10 创建。