r - rmarkdown ggplot 不能正确显示汉字
问题描述
我在Rmarkdown中使用了易慧的Rmarkdown模板,也就是CTeX文档。ggplot 中的汉字显示不正确。具体来说,它们显示为“....”。
我已经阅读了多字节字符的编码,但仍然没有解决这个问题。
我也试过
showtext
打包使用showtext.auto()
,还是不行
解决方案
推荐阅读
- javascript - document.write() 有什么错误吗?
- r - OLS 模型将无法运行,并在 model.frame.default 中吐出错误
- javascript - 用 Javascript 更新/编辑表格
- excel - 如何轻松地将值与范围内的其他值进行比较
- angular - Ionic4 Angular AuthGuard 适用于主页,不适用于登录页面
- html - css 和 js url 不能通过布局装饰在基本文件 thymeleaf 上工作
- php - php删除包含'&字符'的文件
- javascript - 无法使用 JS 和 mySql 正确连接到数据库
- wpf - 如果每个用户控件都有一个视图模型,我如何动态更改视图模型
- python - 在 exe PyInstaller 中找不到文件