[R] contour(): lines & labels in different colours?
(Ted Harding)
Ted.Harding at manchester.ac.uk
Sun Nov 22 18:06:11 CET 2009
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 at high levels).
In any case, contour labels in red are already somewhat inconspicuous
with contour lines in red, regardless of background.
I see nothing in ?contour nor in ?par about this.
One way to approach it could be to first draw the labelled contours
in black, and then overlay by re-drawing (with out labels) in red.
This would sort-of work, but the red contour lines would then cut
through the black numbers, which is somewhat undesirable. Also
(I've tried it) you can get show-through along the contour lines
from the black layer, which is nasty.
Any suggestions?
With thanks,
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at manchester.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 22-Nov-09 Time: 17:06:08
------------------------------ XFMail ------------------------------
More information about the R-help
mailing list