[R] contour lines intersect

Adrian Baddeley adrian at asteridia.maths.uwa.edu.au
Wed Aug 6 06:56:21 CEST 2003


Hi,

Sorry if this is already known...

contour() sometimes draws contour lines that intersect.
Is there a temporary fix?

A dataset which causes problems is at
   http://www.maths.uwa.edu.au/~adrian/dumpdata.R
If you try just
   source("dumpdata.R")
   image(huh)
   contour(huh)
the 100 x 100 matrix 'huh' contains an hourglass-shaped region
of values around 0.8. The contour plot shows two contour lines at
the level 0.8 which cross each other in a figure 8.

In the short term can anyone suggest how to fix the contour plot
for this particular dataset??

My system: R 1.7.0 (16/4/2003) i686-pc-linux-gnu

----
Adrian Baddeley, Mathematics & Statistics, University of Western Australia
		<http://maths.uwa.edu.au/~adrian/>




More information about the R-help mailing list