[R] changing default labels of axis in ts plots

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Sep 1 15:24:23 CEST 2004

On Wed, 1 Sep 2004, javier garcia - CEBAS wrote:

> Hi;
> I'm in Spain and my locale and tz are the spanish one, and I'm using plot() 
> with irregular time series. And I would like to change the default labels in 
> x and y axis:
> 1) The labels of months in the x axis of the plots appear in Spanish -  
> c("Enero,"Febrero",...) - and I would like them to appear in English - 
> c("January","February",...) - without changing the locale settings of my 
> computer.
> 2) Also, the labels refers to local time and I would like them to appear in 
> UTC ("GMT") time.
> I've tried, in several ways, to pass the format and timezone "GMT" to the 
> plot, with no result.
> Could these defaults be changed without a big effort?

?locales in R, set TZ with Sys.putenv.  Your process does not have to have 
the same settings as `my computer'.

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

More information about the R-help mailing list