[R] contour(): lines labels in different colours?

2009-11-22 Thread Ted Harding
Greetings, All! I want to draw contour lines in red, using contour(), but also have the contour labels (for the level-values) in black so that they will stand out against a coloured background already generated using filled.contour() (the background shades from green at low levels of risk to red

Re: [R] contour(): lines labels in different colours?

2009-11-22 Thread Peter Ehlers
Hi Ted, This won't solve your problem, but a small improvement might be to place the labels over the lines rather than the other way around. It will definitely avoid putting red lines over black ones: x - -6:16 z - outer(x,x) contour(z, labels=, col=2) contour(z, lty=0, labcex=1, add=TRUE)

Re: [R] contour(): lines labels in different colours?

2009-11-22 Thread David Winsemius
On Nov 22, 2009, at 4:57 PM, Peter Ehlers wrote: Hi Ted, This won't solve your problem, but a small improvement might be to place the labels over the lines rather than the other way around. It will definitely avoid putting red lines over black ones: x - -6:16 z - outer(x,x) contour(z,

Re: [R] contour(): lines labels in different colours?

2009-11-22 Thread Duncan Murdoch
On 22/11/2009 5:21 PM, David Winsemius wrote: On Nov 22, 2009, at 4:57 PM, Peter Ehlers wrote: Hi Ted, This won't solve your problem, but a small improvement might be to place the labels over the lines rather than the other way around. It will definitely avoid putting red lines over black

Re: [R] contour(): lines labels in different colours?

2009-11-22 Thread Duncan Murdoch
On 22/11/2009 5:35 PM, Duncan Murdoch wrote: On 22/11/2009 5:21 PM, David Winsemius wrote: On Nov 22, 2009, at 4:57 PM, Peter Ehlers wrote: Hi Ted, This won't solve your problem, but a small improvement might be to place the labels over the lines rather than the other way around. It will

Re: [R] contour(): lines labels in different colours?

2009-11-22 Thread David Winsemius
On Nov 22, 2009, at 5:35 PM, Duncan Murdoch wrote: On 22/11/2009 5:21 PM, David Winsemius wrote: On Nov 22, 2009, at 4:57 PM, Peter Ehlers wrote: Hi Ted, This won't solve your problem, but a small improvement might be to place the labels over the lines rather than the other way around. It

Re: [R] contour(): lines labels in different colours?

2009-11-22 Thread Ted Harding
Wow! (Top-posting for once, since there's no natural other place ...) Thanks Peter, David and Duuncan for the suggestions. I'll look at the later ones from David Duncan later (it's getting late here). However, as something to work on if you want to, here is a toy example, based on the same

Re: [R] contour(): lines labels in different colours?

2009-11-22 Thread Duncan Murdoch
On 22/11/2009 6:28 PM, (Ted Harding) wrote: Wow! (Top-posting for once, since there's no natural other place ...) Thanks Peter, David and Duuncan for the suggestions. I'll look at the later ones from David Duncan later (it's getting late here). However, as something to work on if you want to,

Re: [R] contour(): lines labels in different colours?

2009-11-22 Thread David Winsemius
On Nov 22, 2009, at 8:01 PM, Duncan Murdoch wrote: On 22/11/2009 6:28 PM, (Ted Harding) wrote: Wow! (Top-posting for once, since there's no natural other place ...) Thanks Peter, David and Duuncan for the suggestions. I'll look at the later ones from David Duncan later (it's getting late