Skip to content

additional graphical parameters in contour function

5 messages · Abdou ALI, Sundar Dorai-Raj, Uwe Ligges

#
The reason is that I want to add on a same graphic several contour plot, and 
I want to give different line types for each contour. I thus thought that 
these options of the contour function made it possible to do it.

Thank.
#
Abdou ALI wrote:

            
Please, can you explain why you think it does make sense here?

Uwe Ligges
#
Abdou ALI wrote:
Hi, Abdou,

Then use "lty", not "type", as is shown in ?contour.

--sundar
#
Abdou ALI wrote:

            
But these arguments do not refer to line types at all!

Use "lty" instead as in:

  x <- -6:16
  op <- par(mfrow = c(2, 1))
  contour(outer(x, x), method = "edge", lty=1)
  contour(outer(x, x), method = "edge", lty=2)

Uwe Ligges