[R] Space between bars in barplot

Dieter Menne dieter.menne at menne-biomed.de
Wed Oct 8 20:06:07 CEST 2008


mentor_ <mentor_ <at> gmx.net> writes:

> with the "space" parameter it is possible to change the gap / distance
> between the bars, but is it also
> possible to change the "space" after each 6th bar?
> So for example you have bars from 1 to 6 then a large gap and then the next
> six bars from 7 to 12


Space can be a vector, as the doc say. Try

barplot(rnorm(100),space=1:10)


for a nice effect.

Dieter



More information about the R-help mailing list