冒似在R中不能使用中文。[R.2.7.0版本已经完全支持中文版了]
- fortruth
- 帖子: 1795
- 注册时间: 2005-11-06 1:51
- 来自: 七彩云世界
- 联系:
冒似在R中不能使用中文。[R.2.7.0版本已经完全支持中文版了]
各位使用 R 的xdjm。
你们可以在 R 中使用 中文么。?
请赐教!!!
你们可以在 R 中使用 中文么。?
请赐教!!!
上次由 fortruth 在 2008-06-03 14:01,总共编辑 2 次。
佛出寺,求索真世界 For_Truth:Free_Open_Share
OPEN GPG KEY:03D18D95
OPEN GPG KEY:03D18D95
- fortruth
- 帖子: 1795
- 注册时间: 2005-11-06 1:51
- 来自: 七彩云世界
- 联系:
那就给ee上上一课/
http://www.r-project.org/R: a language and environment for statistical computing and graphics
R:是有着统计分析功能和强大作图功能的软件系统
上次由 fortruth 在 2007-07-24 11:06,总共编辑 1 次。
佛出寺,求索真世界 For_Truth:Free_Open_Share
OPEN GPG KEY:03D18D95
OPEN GPG KEY:03D18D95
- imick
- 帖子: 88
- 注册时间: 2006-02-21 23:36
是输出时所用吗?google找到一个技巧,虽然是Win下的,但命令的用法一样的。
In order to use (simplified) Chinese characters in pdf/postscript devices of R graphics system, we need to specify the argument "family" in the function pdf() or postscript(). For instance,
代码: 全选
pdf("d:/cn.pdf", family = "GB1") plot(1, main = "你好") # use Chinese characters in the main title dev.off()
代码: 全选
postscript("d:/cn.ps", family = "GB1") plot(1, main = "你好") dev.off()
=[零]=
- fortruth
- 帖子: 1795
- 注册时间: 2005-11-06 1:51
- 来自: 七彩云世界
- 联系:
- TheThirdGhost
- 帖子: 1592
- 注册时间: 2006-07-23 16:25
- 来自: 南京
- fortruth
- 帖子: 1795
- 注册时间: 2005-11-06 1:51
- 来自: 七彩云世界
- 联系:
部分解决:只实现了输出为ps和pdf文件中的图形,中文问题。
感谢 5L的
例: http://statist.spaces.live.com/blog/cns ... !394.entry
另参考R help
Rnew 2006-2 (non-standard fonts in postscript and pdf graphics)
可以实现了在postscript和pdf中的中文输出,但是,直接在device中却还是不行,仍然是乱码。
不知各位能否在图形窗口(device)中输出中文啊,因为有人说可以直接在图形窗口(device)中输出中文。
但在我的机子中却是不行的。
感谢 5L的
例: http://statist.spaces.live.com/blog/cns ... !394.entry
代码: 全选
pdf("~/Desktop/plotcn.pdf", family = "GB1")
plot(1, main = "你好") # use Chinese characters in the main title
dev.off()
postscript("~/Desktop/plotcn.ps", family = "GB1")
plot(1, main = "你好")
dev.off()
代码: 全选
help(pdf)
可以实现了在postscript和pdf中的中文输出,但是,直接在device中却还是不行,仍然是乱码。
不知各位能否在图形窗口(device)中输出中文啊,因为有人说可以直接在图形窗口(device)中输出中文。
但在我的机子中却是不行的。
上次由 fortruth 在 2007-08-14 9:18,总共编辑 1 次。
佛出寺,求索真世界 For_Truth:Free_Open_Share
OPEN GPG KEY:03D18D95
OPEN GPG KEY:03D18D95
-
- 帖子: 156
- 注册时间: 2006-01-02 3:15
- fortruth
- 帖子: 1795
- 注册时间: 2005-11-06 1:51
- 来自: 七彩云世界
- 联系:
- fortruth
- 帖子: 1795
- 注册时间: 2005-11-06 1:51
- 来自: 七彩云世界
- 联系:
- fortruth
- 帖子: 1795
- 注册时间: 2005-11-06 1:51
- 来自: 七彩云世界
- 联系: