Message-ID: <6D5A57DD0EB14A419B694B31692A0D761A3611@UTHEVS5.mail.uthouston.edu>
Date: 2009-01-21T05:29:32Z
From: Li, Hua
Subject: A question on histogram (hist): coordinates on x-axis are too sparse
Dear R helpers:
Let's say I have some data X,
X <- runif(1000, 1, 10000000000)
pdf('X.pdf', width=100,height=5)
hist(X, breaks=1000)
dev.off()
I find that, on x-axis the coordinates are 0e+00, 2e+09, 4e+09, 6e+09, 8e+09, 1e+10. Only five numbers, which is too sparse in a 100x5 pdf file. I want the x-axis coordinates to become more dense, e.g. 0e+00, 1e+09, 2e+09, 3e+09,..... 8e+09, 9e+09, 1e+10. What argument (or function) should I revise to let this happen??
Thanks a lot!!
Best, Hua
***************************************************************************************
HUA LI
Graduate student
Biomathematics & Biostatistics
The University of Texas Health Science Center At Houston