I might be missing something simple here... I can\'t find anyway to remove the lines that cross the legend differentiating different colours; following on the from the volcano t
You don't even need to change the filled.contour hardcode. Apparently the argument border in the function rect relies on par("fg"). Just set par(fg = NA) to remove those black lines.