Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.44.0306260806530.8542-100000@gannet.stats>
Date: 2003-06-26T07:10:14Z
From: Brian Ripley
Subject: Change default parameters of panel.smooth
In-Reply-To: <C2C6EA6C4DADB348BFDF58894B03901201274203@kinsrv001.dpi.qld.gov.au>

On Thu, 26 Jun 2003, Dowkiw, Arnaud wrote:

> Thanks Simon,
> 
> in fact, problems occur when I use panel.smooth inside pairs, not when I
> use panel.smooth alone :
> 
> > pairs(Fingaroy.F3.cross3.Streetonout.df[,c(5:9)],main="Kingaroy -- F3 -- Cross3",lower.panel=panel.smooth,upper.panel=panel.cor,diag.panel=panel.hist)
> 
> when I do this, I don't know how to change the parameters of
> panel.smooth, I tried :
> 
> > pairs(Fingaroy.F3.cross4.Streetonout.df[,c(5:9)],main="Kingaroy -- F3
> > --
> > Cross4",lower.panel=panel.smoot(col.smooth="blue"),upper.panel=panel.cor,diag.panel=panel.hist)
> 
> 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 ?

Use

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

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595