Skip to content
Prev 1892 / 7420 Next

problem barplot width

The help page of barplot says:

   width: optional vector of bar widths. Re-cycled to length the number
          of bars drawn.  Specifying a single value will have no
          visible effect unless ?xlim? is specified.

Following your code, have a look at these examples, which might help to
understand:

barplot(d,col=barcol,ylim=c(min(d-s*1.25),max(d+s*1.25)),space=2)
barplot(d,col=barcol,ylim=c(min(d-s*1.25),max(d+s*1.25)), width = c(1,
3, 2))
barplot(d,col=barcol,ylim=c(min(d-s*1.25),max(d+s*1.25)), width = 0.01,
xlim = c(0,1))

Hope this helps,
Mathieu.


Le 2011-02-04 16:24, Mario Beolco a ?crit :