From h.wickham at gmail.com  Sun Mar  9 23:27:50 2008
From: h.wickham at gmail.com (hadley wickham)
Date: Sun, 9 Mar 2008 17:27:50 -0500
Subject: [Rd] [patch] add=TRUE in plot.default()
In-Reply-To: <20080309215833.GH23544@econ.upenn.edu>
References: <20080309031119.GC23544@econ.upenn.edu>
	<47D40C41.1000202@stats.uwo.ca>
	<20080309164639.GF23544@econ.upenn.edu> <47D442B8.10501@stats.uwo.ca>
	<20080309215833.GH23544@econ.upenn.edu>
Message-ID: <f8e6ff050803091527j1e09dbe6qf298ef9e131e27ba@mail.gmail.com>

>  Yes.  The ability to plot things on top of each other is important.
>  The simplicity created by having a single interface for adding to plots
>  outweighs the complexity of yet another parameter.
>
>  The add parameter only interacts with other parameters superficially --
>  some parameters of "plot" (like log) are related to the shape of the axes,
>  and should be inherited from what is on the plot already.

But what about when the new data is outside the range of the current
plot?  Wouldn't you expect the axis ranges to expand automatically?
Instead of trying to shoehorn plot modification on top of base
graphics, you could try using ggplot2 (http://had.co.nz/ggplot2) which
has been built from the ground up to facilitate this kind of
manipulation.

Hadley


-- 
http://had.co.nz/



[Rd] [patch] add=TRUE in plot.default()
hadley wickham