[R] A drawing problem with R

R. Michael Weylandt <michael.weylandt@gmail.com> michael.weylandt at gmail.com
Tue Aug 14 05:13:09 CEST 2012


What's your sessionInfo()? And how did you Change the locale? And what was your actual plot command and graphics device?

Michael

On Aug 13, 2012, at 10:17 PM, Derrick Guan <guanyonghui89 at gmail.com> wrote:

> Dear R-help mailing list,
> 
> I have a drawing problem with R:
> 
> I need to draw an horizontal axis with date, here is the test code:
> 
>> ticks <- c("2004-01-22","2005-01-22","2006-01-22","2007-01-
> 22","2008-01-22","2009-01-22","2010-01-22","2011-01-22","2012-01-22")
>> ats <- ticks[seq(1,length(ticks))]
>> lbl <- strftime(ats,"%b %y")
>> lbl
>> [1] "һ�� 04" "һ�� 05" "һ�� 06" "һ�� 07" "һ�� 08" "һ�� 09" "һ�� 10" "һ�� 11" "һ��
> 12"
> 
> I have changed the R environment to English and why was "lbl" shown to be
> Chinese instead of English?
> 
> Hopefully this can be resolved. Any tips would be greatly appreciated.
> Thanks in advance,
> 
> Derrick
> 
>    [[alternative HTML version deleted]]
> 
> ______________________________________________
> 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