如何在剧情中标题一个大胆的罗马字母

问题描述 投票:0回答:1

我在用粗体字体罗马字母填写我的情节时遇到了困难。我做了几次尝试,但上面显示的是较少愚蠢的尝试:

# error
plot(1)
title(main=bquote(paste("Title ",.(bold(as.roman(i))))) ,family = "Computer Modern", adj = 0)

# not pretty
title(main=expression(paste("Title ",bold(as.roman(i)))) ,family = "Computer Modern", adj = 0)

我试图将bquote替换为expressionsubstitute,其他人提出类似问题的建议,但没有成功。

r plot
1个回答
3
投票

如果您只想要罗马数字为粗体:

plot(1)
text <- as.character(as.roman(4))
title(main = bquote(Title~bold(.(text))))

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.