[R] Histogram without common borders

Ross Darnell r.darnell at uq.edu.au
Tue Jul 20 07:23:16 CEST 2004


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
http://www.shrs.uq.edu.au/shrs/school_staff/ross_darnell.html




More information about the R-help mailing list