[R] Change the language of the labels in a graph

Gabor Grothendieck ggrothendieck at gmail.com
Tue Apr 25 03:03:01 CEST 2006


This works for me on my Windows XP system:

Sys.putenv("LANGUAGE"="FR"); Sys.setlocale("LC_ALL","FR")


On 4/24/06, Lapointe, Pierre <Pierre.Lapointe at nbf.ca> wrote:
> Hello,
>
> How do you change the language of the labels in a graph.  In this example, I
> want to get French labels by changing Sys.putenv.  I should get "Mai"
> instead of "May".
>
> Sys.putenv(LANGUAGE="fr")
> x <- as.Date(c("1jan1960", "2jan1960", "31mar1960", "30jul1960"), "%d%b%Y")
> y <-1:4
> plot(x,y)
>
>
> Regards,
>
> Pierre Lapointe
>
>
> **************************************************
> AVIS DE NON-RESPONSABILITE: Ce document transmis par courrie...{{dropped}}
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list