在R中加入希腊字母 [英] Bolding Greek letters in R

查看:1162
本文介绍了在R中加入希腊字母的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想添加一个希腊字母给我的数字边界,我使用下面的代码行:

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

但是,当我将多行文字功能与希腊字母结合使用时,它不再粗体显示文字。有没有什么好的方法来添加带有希腊字母的边距文本并保留粗体字体?



谢谢。

解决方案

您可以使用<$ c $ (粗体(粘贴(beta, - 肌动蛋白标准化的), )))

在你要求加粗(beta)之前,你应该阅读 Rplep教授的信息


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.

解决方案

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

这篇关于在R中加入希腊字母的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆