[R] Suppressing scientific notation on plot axis tick labels

Dimitri Shvorob dimitri.shvorob at gmail.com
Tue Feb 2 11:01:50 CET 2010


Is there a better alternative to

x  = c(1e7, 2e7)
x.lb = c(0,1e7,2e7) 
s.lb = format(x.lb, scientific = FALSE, big.mark = ",")
barplot(x, yaxt = "n", ylab = "") 
axis(side = 2, at = x.lb, labels = s.lb)

(I am sure there is a better alternative to line 2 :)). 

Thank you.
-- 
View this message in context: http://n4.nabble.com/Suppressing-scientific-notation-on-plot-axis-tick-labels-tp1459697p1459697.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list