Bolding Greek letters in R

∥☆過路亽.° 提交于 2019-12-02 04:28:55

问题


I want to add a greek letter to my the margin of a figure, and I used the line of code below:

mtext(side=2,line=6,text=expression(paste(beta,"-Actin Normalized")),font=2,cex=2)

However, when I use the mtext function in combination with greek letters it no longer bolds the line of text. Is there any good way to add margin text with greek letters and retain bold font?

Thanks.


回答1:


You can use the bold plotmath function:

expression(bold(paste(beta,"-Actin Normalized")))

And before you ask for bold(beta) you should read this information from Prof Ripley on Rhelp



来源:https://stackoverflow.com/questions/6047187/bolding-greek-letters-in-r

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!