Re: [R] barplot, different color for shading lines and bar

2011-02-20 Thread Jannis
The easiest solution may be using par(new=TRUE) and to overlay a coloured barplot with a separate shaded barplot HTH Jannis On 02/19/2011 10:58 PM, Markus Loecher wrote: Dear all, might there be a modified barplot function out there which allows the user to specify a fill color for the

Re: [R] barplot, different color for shading lines and bar

2011-02-20 Thread Dennis Murphy
Hi: This isn't hard to do with ggplot2. Here's a toy example: d - data.frame(gp = LETTERS[1:4], frq = c(10, 25, 30, 20)) library(ggplot2) # The fill aesthetic colors the bars, the colour aesthetic does the same for the borders. # (1) Same color for both, use alpha transparency: ggplot(d,

[R] barplot, different color for shading lines and bar

2011-02-19 Thread Markus Loecher
Dear all, might there be a modified barplot function out there which allows the user to specify a fill color for the bars and independent parameters for the overlaid shading lines ? Currently, when I specify density and col, the fill color for the bars is white. Thanks! Markus