在基础 R 中使用默认字体 ( sans
) 时,像 μ 这样的符号排版效果不佳:
plot(1, xlab = bquote("I want sans font here, but serif font for:" ~ (mu * g)))
g看起来比μ符号大。
将字体系列设置为serif
稍微改善了这一点:
par(family = "serif)
plot(1, xlab = bquote("I want sans font here, but serif font for:" ~ (mu * g)))
仍然不完美,但更接近。
- 如果我希望文本为
sans
,是否可以更改符号的字体系列中间句? - 如果没有,有没有更好的方法来排版 μg in
plot
?