Re: [R] Thousand separator on axis

2009-03-06 Thread Duncan Murdoch
Waldir Leôncio wrote: Is there an easy way to add a thousand separator mark on the axis of a plot? The best solution I've found so far is the following: y <- seq(0, 10, 1) plot(y, yaxt = "n", ylab = "") axis(2, at = y, labels = formatC(y, big.mark = " ", format = "d"), las=2) But that

[R] Thousand separator on axis

2009-03-06 Thread Waldir Leôncio
Is there an easy way to add a thousand separator mark on the axis of a plot? The best solution I've found so far is the following: y <- seq(0, 10, 1) plot(y, yaxt = "n", ylab = "") axis(2, at = y, labels = formatC(y, big.mark = " ", format = "d"), las=2) But that seems like quite a hassl