Skip to content
Prev 244182 / 398506 Next

How to switch label font from Chinese to English

On Tue, 7 Dec 2010, Jianhong Wang wrote:

            
Is this covered by the Windows FAQ at
http://cran.r-project.org/bin/windows/base/rw-FAQ.html

especially Qs 3.2 and 3.3?  (We don't know what you see in Chinese.) 
I suspect the issue is the locale category LC_TIME which is used to 
'print' date-times (and in my UK locale I get an x axis annotated ny 
'Aug').  If I do
[1] "zh_CN.utf8"
I get Chinese labels ....

If so, you can also use a different format for the annotations: see 
?axis.POSIXct, e.g.

plot(t, y, format='%m/%d')