I have found the function dhist() in the ggplot2 package that implements the variable width histogram described by Denby and Mallows (2009) but I can not find any examples of its use. I would like to use it with the following code to create
variable bin widths:
x1 <- c(rep(0, 250), rlnorm (1000))
x2 <- c(rlnorm(1250))
x <- data.frame(x1, x2)
x.long <- melt(x, measure.vars=c("x1","x2"))
ggplot(x.long, aes(x=value)) +
geom_step(aes(x=value, y=..density.., colour=variable),
stat="bin", binwidth=0.2) +
coord_cartesian(xlim = c(-1, 15))
How can I do this?
note: I cross posted this question from the ggplot2 google group where it has been unanswered. If I get an answer here, will post there, and vice versa

ggplot2, thanks for pointing out my oversight; I have updated my post - David LeBauerstat_bin/geom_histogram- hadley