Entering edit mode
Thomas Lumley
▴
20
@thomas-lumley-409
Last seen 10.5 years ago
In plot.hexbin, if the legend is not shown the previous plot is not
cleared.
A fix seems to be to add
if (legend)
before
par(new = TRUE, mai=mai, fig = fig)
about five lines from the bottom of the function.
-thomas
Thomas Lumley Assoc. Professor, Biostatistics
tlumley@u.washington.edu University of Washington, Seattle