Using italic() with a variable in ggplot2 title expression

后端 未结 1 844
一整个雨季
一整个雨季 2020-12-11 17:33

When I make a map using ggplot2 and attempt to italicize part of the figure title using a combination of expression() and italic() usi

相关标签:
1条回答
  • 2020-12-11 17:45

    bquote or substitute should work,

     a = 'text' 
     plot(1,1, main=bquote(italic(.(a))))
     plot(1,1, main=substitute(italic(x), list(x=a)))
    
    0 讨论(0)
提交回复
热议问题