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.

______________________________________________
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