[R] How to handle Chinese character in R plot?
C.H.
chainsawtiney at gmail.com
Wed Oct 17 12:35:26 CEST 2012
I guess you are using Arch.
I think it might be related to the fonts. Try to install good Chinese
font such as ttf-wqy-zenhei. In my (debian) system, I have only
installed this font and it plots in R without hiccups.
On Wed, Oct 17, 2012 at 9:45 AM, Manish Gupta <mandecent.gupta at gmail.com> wrote:
> Hi,
>
>
> I also did the same what u suggested.
>
>
>> sessionInfo()
> R version 2.14.1 (2011-12-22)
> Platform: x86_64-unknown-linux-gnu (64-bit)
>
> locale:
> [1] LC_CTYPE=zh_CN.UTF-8 LC_NUMERIC=C
> [3] LC_TIME=zh_CN.UTF-8 LC_COLLATE=zh_CN.UTF-8
> [5] LC_MONETARY=zh_CN.UTF-8 LC_MESSAGES=zh_SG.UTF-8
> [7] LC_PAPER=C LC_NAME=C
> [9] LC_ADDRESS=C LC_TELEPHONE=C
> [11] LC_MEASUREMENT=zh_SG.UTF-8 LC_IDENTIFICATION=C
>
> attached base packages:
> [1] stats graphics grDevices utils datasets methods base
>
> loaded via a namespace (and not attached):
> [1] XML_3.9-4
>> source("a.txt",encoding="UTF-8")
>
> But still same pblm is there.
>
> <http://r.789695.n4.nabble.com/file/n4646421/Screenshot.png>
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/How-to-handle-Chinese-character-in-R-plot-tp4645950p4646421.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list