Skip to content
Prev 58527 / 398502 Next

Labelling contour lines

Nathaniel Street wrote:

            
I guess you either haven't realized the ordering of the y axis or you 
have created the matrix column-wise instead of row-wise (or vice versa).
I can only guess, because there is no reproducible example...


 > I guess
Not really, what you can to is (extended from ?contour):


  x <- -6:16
  contour(outer(x, x), method = "edge", vfont = c("sans serif", "plain"))
  cL <- contourLines(outer(x, x), levels=75)
  lines(cL[[1]], col="red")

Now you have the contour lines coordinates for level 75 in cL, an 
plotted it afterwards.

Uwe Ligges