Alexy Khrabrov
2009-Jun-29 03:56 UTC
[R] comma-separated thousands in numbers on plot axes?
How can I make R separate thousands, millions, etc., on the plot axes, with commas? Cheers, Alexy
Alexy Khrabrov wrote:> How can I make R separate thousands, millions, etc., on the plot axes, > with commas? > >Hi Alexy, You might try formatting the labels with the "comma" function in the ggplot2 package: axis(1,at=seq(1000000,5000000,by=1000000), labels=comma(seq(1000000,5000000,by=1000000))) Jim