Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R plot() produces date labels in Russian

I'm working on a machine with Russian Win 8.1.

While installing RStudio I chose English as default language, but when dealing with dates (POSIXt), plot() gives me an output with Russian labels on the time axis.

How can I fix it? I want English.

Thanks in advance!

enter image description here

like image 353
ikashnitsky Avatar asked Mar 05 '15 23:03

ikashnitsky


1 Answers

Based on a comment from Pascal, the answer for the question is to set locale

Sys.setlocale(category = "LC_ALL", locale = "english")

Another option is to change the locale of OS.

like image 55
ikashnitsky Avatar answered Dec 19 '22 04:12

ikashnitsky