Skip to content
Prev 87150 / 398506 Next

Need a hint

Here are a couple of quick thoughts on your problem.

1. Use alpha channels (may require you to produce all your graphs as pdf
files).

Fill each of your criteria categories with a mostly transparent color,
e.g. the full contour of z[1] between 20 and 30 is 20% opaque and the
full contour(s) of z[2] < 40 is 20% opaque.  Then where they overlap
will be 40% opaque and stand out (and if you have 5 critera then where
they all overlap  will be 100% opaque.


2. create a dataframe with all your z's predicted over a regular grid of
x and y values (possibly the same set as used for the contours), then
create a logical variable that ands together all your critera, e.g.:

New <- transform(old, z.combined = 20 < z1 & z1 < 30 & z2 < 40)

Then do a levelplot with the new logical variable as the response (maybe
do as.numeric on it first), then overlay your contours on top of the
levelplot.