【发布时间】:2021-07-03 11:21:57
【问题描述】:
在基础 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,是否可以更改符号的字体系列中间句? - 如果没有,有没有更好的方法在
plot中排版μg?
【问题讨论】:
-
检查
ragg包....可能会有所帮助。 -
@Roman 哇,这是我一直在寻找的东西,谢谢!
标签: r plot fonts plotmath typesetting