简体   繁体   English

R中的粗体希腊字母

[英]Bolding Greek letters in R

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. 但是,当我将mtext函数与希腊字母结合使用时,它不再加粗文本行。 Is there any good way to add margin text with greek letters and retain bold font? 有什么好方法可以添加带有希腊字母的边距文本并保留粗体字体?

Thanks. 谢谢。

You can use the bold plotmath function: 您可以使用bold plotmath函数:

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

And before you ask for bold(beta) you should read this information from Prof Ripley on Rhelp 在要求使用粗体(beta)之前,您应该先阅读Ripley教授在Rhelp上的相关信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM