我正在尝试创建注释并对齐它。如果我使用:
annotate("text", label = "atext", x = 1, y = 1)
文本的中心 (the e) 位于(1, 1)。但是,我希望文本的左边框(a)位于(1, 1). 我该如何做到这一点?
我正在尝试创建注释并对齐它。如果我使用:
annotate("text", label = "atext", x = 1, y = 1)
文本的中心 (the e) 位于(1, 1)。但是,我希望文本的左边框(a)位于(1, 1). 我该如何做到这一点?
用于hjust水平对齐。
annotate("text", label = "atext", x = 1, y = 1, hjust = 0)
查看并了解更多信息;vjust hjust
这是一个图表,显示了上述参数的不同值如何控制对正(和角度)。