Skip to content
Prev 63982 / 398500 Next

Histogram Bar Spacing or Border Width

Tom,
I dealt with this once. 

 barplot.data<- c(2,3,4,5,6)
 x<- barplot(barplot.data, ylim = c(0,10), space= .9,.9,.9,.9)

use the space= to define the spacing between each of your barplot values. 
If you have groups of bars that you want together, with spaces between the groups,
you have to put 0's for each of the unspaced bars. 

Hope this helps,

Zack
----- Original Message -----
From: Thomas Hopper <tomhopper at comcast.net>
Date: Wednesday, February 9, 2005 7:02 am
Subject: [R] Histogram Bar Spacing or Border Width