[R] Change default parameters of panel.smooth
Prof Brian Ripley
ripley at stats.ox.ac.uk
Thu Jun 26 09:10:14 CEST 2003
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
More information about the R-help
mailing list