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

hadley wickham h.wickham at gmail.com
Sun Mar 9 23:27:50 CET 2008


>  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/



More information about the R-devel mailing list