[R] Histogram Bar Spacing or Border Width
Prof Brian Ripley
ripley at stats.ox.ac.uk
Wed Feb 9 17:06:45 CET 2005
A histogram is a density estimate (at least as defined in the Encyclopedia
of Statistics Sciences, if not in many US Universities). It is an area,
not a series of unrelated bars, so it makes no sense to have spaces
between the subareas.
Unfortunately, hist() will also produce barplots of counts.
On Wed, 9 Feb 2005, Thomas Hopper wrote:
> Is there any way to control the spacing between bars in a histogram, or
> change the border width (I'm assuming the hist() function, though
> alternatives are welcome)? I'm interested in changing the visual spacing
> between columns in a plotted histogram.
>
> The general effect I'm looking for can be accomplished in barplots using the
> "width=" parameter, but I have not been able to find a way to adjust the
> apparent spacing in histograms.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list