Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道如何只使dmy中的主要单词text()以斜体显示,但下标单词"unbiased"保持为普通文本?
d
text()
"unbiased"
请在下图下方查看我的 R 代码。
这是我的 R 代码:
plot(1:10, ty="n") text( 4, 4.5, bquote(italic(d[(unbiased)])), cex = 5)
保持“公正”在外面italic或使用plain:
italic
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)