Re: [R] Thousand separator in format of axis

From: Richard M. Heiberger <rmh_at_temple.edu>
Date: Sun 17 Sep 2006 - 22:12:34 GMT


> format(10000, big.mark=" ")

[1] "10 000"
> format(seq(10000,100000,10000), big.mark=" ", scientific=FALSE)
 [1] " 10 000" " 20 000" " 30 000" " 40 000" " 50 000" " 60 000" " 70 000"  [8] " 80 000" " 90 000" "100 000"

> plot(seq(10000, 100000, 10000), yaxt="n")
> axis(2, at=seq(10000, 100000, 10000), labels=format(seq(10000,100000,10000),
+ big.mark=" ", scientific=FALSE))



R-help@stat.math.ethz.ch 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. Received on Mon Sep 18 08:15:43 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 17 Sep 2006 - 22:30:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.