user2165907
user2165907

Reputation: 1451

axis labels are not plotted in English

R doesn't plot automatically the axis labels in English (for example Months are in French). I use (if the information is useful...):

I know that I am not the only one with this issue but I never found a solution.

> sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=French_France.1252  LC_CTYPE=French_France.1252 LC_MONETARY=French_France.1252 LC_NUMERIC=C LC_TIME=French_France.1252

Upvotes: 8

Views: 7769

Answers (2)

user2165907
user2165907

Reputation: 1451

To change language of the environment use the following command:

Sys.setenv("LANGUAGE"="En")

To change locale to English:

Sys.setlocale("LC_ALL", "English")

The name of the locale depends on what is installed on your system (for example, you might use "en_GB.UTF-8" instead of "English").

Upvotes: 15

statquant
statquant

Reputation: 14400

The locale you see in sessionInfo() is system wide specific, go to windows regional options and change from french to english then restart R and you should see English instead of french...but this is only if you want do it quick and dirty, it will then be applied system wide. Else ?locale should explain and to do it more surgically

Upvotes: 0

Related Questions