[R] histogram question

Thomas Lumley tlumley at u.washington.edu
Mon Nov 12 19:00:22 CET 2001

On Mon, 12 Nov 2001, Erich Neuwirth wrote:

> hist(rbinom(1000,10,0.5),col=2,xlim=c(0,10),ylim=c(0,300))
> gives a histogram with "touching bars"
> hist(rbinom(100000,10,0.5),col=2,xlim=c(0,10),ylim=c(0,30000))
> gives a histogram with space between the bars.
> is there a way to control the space betweent he bars easily?

If you want to control space between the bars you probably want a
barplot(), which does have this sort of control


r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list