Skip to content
Prev 8108 / 398506 Next

2 plots 1 figure

j.logsdon at lancaster.ac.uk writes:
The logic is as follows: When something is plotted to a frame, the
paper is dirtied, so to speak, by saying "this is not a new frame",
which is reflected in par(new) == FALSE. Conversely, when advancing to
a new frame, we use plot.new() which sets par(new) == TRUE. High level
plots query par(new) to see whether it is necessary to advance to a
new frame. So explicitly setting par(new)<-TRUE means "pretend this is
a new frame, even though someone already scribbled on it".

I get it wrong half the time too, though... We have frame() as a
more intuitive version of plot.new(), maybe one could think of an
alias for par(new=TRUE) too? overplot() perhaps?