[R] Histogram without common borders

Ross Darnell
Tue, 20 Jul 2004 05:23:16 -0000

Is it possible to produce a histogram directly using the hist()
function with the common borders removed?

It can be done by plotting the histogram object using type 's'teps.

my.hist <- hist(x,plot=FALSE)
plot(my.hist$breaks,c(0,my.hist$counts),type='s')

I would appreciate help

Ross Darnell
--
University of Queensland, Brisbane QLD 4067 AUSTRALIA
Email: <r.darnell at uq.edu.au>
Phone: +61 7 3365 6087     Fax: +61 7 3365 4754