Skip to content

Change default parameters of panel.smooth

2 messages · Dowkiw, Arnaud, Brian Ripley

#
Thanks Simon,

in fact, problems occur when I use panel.smooth inside pairs, not when I use panel.smooth alone :
when I do this, I don't know how to change the parameters of panel.smooth, I tried :
and got :

Error in points(x, y, pch = pch, col = col, bg = bg, cex = cex) : 
        Argument "x" is missing, with no default
 ...

What should I do ?

Arnaud



-----Original Message-----
From: Simon Blomberg [mailto:Simon.Blomberg at anu.edu.au]
Sent: Thursday, 26 June 2003 4:26 PM
To: Dowkiw, Arnaud; R help mailing list (E-mail)
Subject: RE: [R] Change default parameters of panel.smooth
I think that is all you need. Colour can be changed by setting col.smooth, and the line thickness is actually controlled by lines(), but if you pass panel.smooth lwd=3 (say), it is passed along to lines() with the rest of the arguments. Try:
HTH,

Simon.

Simon Blomberg, PhD
Depression & Anxiety Consumer Research Unit
Centre for Mental Health Research
Australian National University
http://www.anu.edu.au/cmhr/
Simon.Blomberg at anu.edu.au  +61 (2) 6125 3379
 

********************************DISCLAIMER******************...{{dropped}}
#
On Thu, 26 Jun 2003, Dowkiw, Arnaud wrote:

            
Use

lower.panel = function(...) panel.smooth(..., col.smooth="blue")