From maechler at stat.math.ethz.ch  Mon Sep 19 16:38:31 2005
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Mon, 19 Sep 2005 16:38:31 +0200
Subject: [Rd] automatically adding smooth to
	plot:	options("plot.add.smooth")
In-Reply-To: <432EC4D5.7090609@bank-banque-canada.ca>
References: <17190.57225.254938.977464@stat.math.ethz.ch>
	<17194.30238.436418.752419@stat.math.ethz.ch>
	<17196.13904.78468.758438@deb8.math.ethz.ch>
	<17198.44159.670311.662705@stat.math.ethz.ch>
	<432EC4D5.7090609@bank-banque-canada.ca>
Message-ID: <17198.52583.8400.669027@stat.math.ethz.ch>

>>>>> "PaulG" == Paul Gilbert <pgilbert at bank-banque-canada.ca>
>>>>>     on Mon, 19 Sep 2005 10:01:57 -0400 writes:

    PaulG> Martin Maechler wrote:
    >> I've changed the subject in the hope some more people
    >> would voice an opinion...

    PaulG> ...

    >> Now I even propose to have
    >> 
    >> options(add.smooth = TRUE)
    >> 
    >> as a new default.....
    >> 
    >> Do I get a reaction now?  Martin

    PaulG> I think you may break a lot of things if you make
    PaulG> this the default for plot. 

You mean plot.default().
Yes, that would be quite dangerous to do and you give a good example:

    PaulG> this the default for plot. Plot gets used by other
    PaulG> things (like matplot) where this default may not make
    PaulG> much sense. (But I may have missed too much of the
    PaulG> earlier discussion under some other subject.)

or I was not clear enough:
For R 2.2.0, the option would only be used in plot.lm().
Since I'd set its default to TRUE,  plot.lm()'s panels would use
panel.smooth(x,y,...) rather than points(x,y,...), 
and this actually does look quite useful.

Martin



[Rd] automatically adding smooth to plot: options("plot.add.smooth")
Martin Maechler