【发布时间】:2021-07-28 09:29:02
【问题描述】:
我想用annotate写1
library(ggplot2)
# Only greek letters
ggplot() +
annotate(geom = "text",
label = "1*alpha*beta*t",
parse = TRUE,
x = 0,
y = 0)
# Greek letters + unicode
ggplot() +
annotate(geom = "text",
label = "1* \U226A *alpha*beta*t",
parse = TRUE,
x = 0,
y = 0)
Error in parse(text = text[[i]]) : <text>:1:4: unexpected input
1: 1* «
^
【问题讨论】:
标签: r ggplot2 unicode annotations annotate