在Rstudio显示中文

 

1. 将写好的R script 用save with Encoding保存UTF-8格式,这样,下次打开R script 就不会出现乱码了。

2. R script 中的作图,也可加入中文的标题,e.g. 

plot(fc.stl, main="季节调整法的数据分解",family='仿宋')

 3. 使用ggplot2作图显示中文标题

 

 

 

posted @ 2013-11-09 19:04  BinbinChen  阅读(3618)  评论(0编辑  收藏  举报