Re: [R] Color of box frame in Legend (Was: Matrix barplot)

2008-08-09 Thread Andreas Tille
On Mon, 28 Jul 2008, Nutter, Benjamin wrote: Try sourcing in the 'new.legend' function below. It's the legend function with a new argument called 'box.col'. The argument will change the color of the box surrounding the legend. If I understand what it is you are looking for, this should work.

Re: [R] Color of box frame in Legend (Was: Matrix barplot)

2008-07-28 Thread Andreas Tille
On Sun, 27 Jul 2008, S Ellison wrote: Looking at the legend() source the filled box line colour is hardcoded : if (mfill) { if (plot) { fill - rep(fill, length.out = n.leg) rect2(left = xt, top = yt + ybox/2, dx = xbox, dy = ybox, col = fill,

Re: [R] Color of box frame in Legend (Was: Matrix barplot)

2008-07-28 Thread Nutter, Benjamin
Try sourcing in the 'new.legend' function below. It's the legend function with a new argument called 'box.col'. The argument will change the color of the box surrounding the legend. If I understand what it is you are looking for, this should work. Also, I didn't see a way to change the axis bar

Re: [R] Color of box frame in Legend (Was: Matrix barplot)

2008-07-28 Thread Prof Brian Ripley
The current default for the box/frame colour is not black (it is par(fg)), but otherwise I've committed something very similar to the R-devel version of R earlier today. On Mon, 28 Jul 2008, Nutter, Benjamin wrote: Try sourcing in the 'new.legend' function below. It's the legend function

Re: [R] Color of box frame in Legend (Was: Matrix barplot)

2008-07-27 Thread Andreas Tille
On Sun, 27 Jul 2008, S Ellison wrote: Looking at the legend() source the filled box line colour is hardcoded : if (mfill) { if (plot) { fill - rep(fill, length.out = n.leg) rect2(left = xt, top = yt + ybox/2, dx = xbox, dy = ybox, col = fill,

[R] Color of box frame in Legend (Was: Matrix barplot)

2008-07-26 Thread Andreas Tille
On Fri, 25 Jul 2008, Nutter, Benjamin wrote: data - data.frame(Year=c(2000,2001,2002), After the great help here I have a final problem (bug in R??) with the background color. I would like to put my final drawing on a dark background and thus I would like to use brigt colors for axes etc.