Re: [R] draw borders of bars inside of the rectangles in a barplot

2018-05-21 Thread Richard M. Heiberger
I recommend instead of no border, that you use a border with the same color as the fill. I do this in the likert functions in the HH package. Rich On Mon, May 21, 2018 at 10:59 AM, Martin Batholdy via R-help wrote: > Dear R-users, > > I want to draw a barplot with beside=TRUE. > One halve of th

Re: [R] draw borders of bars inside of the rectangles in a barplot

2018-05-21 Thread Bert Gunter
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= "bl

[R] draw borders of bars inside of the rectangles in a barplot

2018-05-21 Thread Martin Batholdy via R-help
Dear R-users, I want to draw a barplot with beside=TRUE. One halve of the bars are drawn with a border, while the other halve are drawn without a border (i.e. filled bars vs. non-filled bars next to each other). Because borders are drawn around the bars, doing this leads to one halve of the bar