Dear useRs

I need to do graphs with dates in different languages on Ubuntu.

In Windows the following will plot the date axis labels in Spanish:

random.dates <- as.Date("2001/1/1") + 70*sort(stats::runif(100))
>language <- "Spanish"
>Sys.setlocale("LC_TIME", language)
>plot(random.dates, 1:100, xaxt="n")
>axis.Date(1, at=seq(as.Date("2001/1/1"), max(random.dates)+6, "weeks"))

Changing the language to "English" will have the same code produce a graph with 
English labels.
On Ubuntu, attempting to change the locale language results in an error message:
'OS reports request to set locale to "Spanish" cannot be honored'


Is there another way of changing the axis labels for dates to a different 
language on the fly?

Regards
Mikkel
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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.

Reply via email to