Re: [R] additional graphical parameters in contour function

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Thu 04 Aug 2005 - 21:36:45 EST

Abdou ALI wrote:

> 

>>> Do you know why additional graphical parameters (like "type","pch",
>>> ...) do not work in the R contour fonction. For example the command
>>> 'contour(..., type="o",pch=16)' gives nothing, just simple contour
>>> lines.
>>
>>
>> Please, can you explain why you think it does make sense here?
>>
> 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.

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

> Thank.
> 
> 

>>
>> Uwe Ligges
>>
>>
>>> Thank you for your response.
>>>
>>> Abdou. [[alternative HTML version deleted]]
>>>
>>> ______________________________________________
>>> R-help@stat.math.ethz.ch mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide!
>>> http://www.R-project.org/posting-guide.html
>>
>>


R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Aug 04 22:02:05 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:04:07 EST