将主词斜体而不是下标词 [英] Italicizing the main word but not the subscripted word

查看:60
本文介绍了将主词斜体而不是下标词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何使text()中的主词d以斜体显示,但下标词<代码>无偏见" 保留为普通文本?

I was wondering how to only make the main word d in my text() to appear in italic, but the subscripted word "unbiased" to remain as ordinary text?

请在下图下方查看我的 R 代码.

Please see my R code below the following picture.

这是我的 R 代码:

plot(1:10, ty="n")

text( 4, 4.5, bquote(italic(d[(unbiased)])), cex = 5)

推荐答案

italic 之外保留unbiased"或使用 plain :

Keep the "unbiased" outside italic or use plain:

plot(1:10, ty = "n")
# original
text(5, 4, bquote(italic(d[(unbiased)])), cex = 5)
# use plain
text(5, 6, bquote(italic(d[(plain(unbiased))])), cex = 5)
# keep "unbiased" outside italic
text(5, 8, bquote(italic(d)[(unbiased)]), cex = 5)

这篇关于将主词斜体而不是下标词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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