R Ggplot,使用三行标签对绘图进行注释,其中包含粗体文本

R Ggplot,使用三行标签对绘图进行注释,其中包含粗体文本,r,ggplot2,format,R,Ggplot2,Format,我想把一些居中的文本组织成3行,其中第一行是粗体 我试过: ggplot() + annotate('label', label = 'atop(bold("text1"), "text2\ntext3")', y = 10, x = 10, parse = T, alpha = .75) 但我得到: 否则: ggplot() + annotate('label', label = 'atop(bold("text1"), atop("text2", "text3"))', y =

我想把一些居中的文本组织成3行,其中第一行是粗体

我试过:

ggplot() + annotate('label', label = 'atop(bold("text1"), "text2\ntext3")', y = 10, x = 10, parse = T, alpha = .75)
但我得到:

否则:

ggplot() +
    annotate('label', label = 'atop(bold("text1"), atop("text2", "text3"))', y = 10, x = 10, parse = T, alpha = .75)


但我希望所有3行字体大小相同。

在顶部再加一行
。基本上,如果“分子”中只有一个项目,而“分母”中有两个垂直项目,则顶部的项目将大于底部的项目。在分子的分子中需要空白文本

ggplot() + 
  annotate('label', 
           label = 'atop(atop("", bold("text1")), atop("text2", "text3"))', 
           y = 10, x = 10, parse = T, alpha = .75 )