Skip to content
Prev 374700 / 398513 Next

draw borders of bars inside of the rectangles in a barplot

As I read ?barplot, the answer is no. I suspect the same is true in ggplot
and lattice, but you would have to check. If correct, this means you would
explicitly have to use the "width" argument to narrow or widen the bars
appropriately. Or maybe try something like:

barplot(x, beside=T, border= "black", space=c(0.08,1), col=rep(c('gray50',
'white'),5))

instead.

Cheers,
Bert



Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )

On Mon, May 21, 2018 at 7:59 AM, Martin Batholdy via R-help <
r-help at r-project.org> wrote: