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]]
______________________________________________
[email protected] 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.