Skip to content
Prev 66721 / 398525 Next

Base and lattice graphics on the same graphics page

On Tuesday 29 March 2005 22:32, John Maindonald wrote:
Paul would know better, but I think that's unlikely. In fact, the 
gridBase package allows you to do use grid (and hence lattice) 
functions to add to a base plot, as well as (I didn't realize this 
before) the other way round. The only caveat is that resizing the 
device may mess things up. 

You may have to be careful with new devices. Your example pasted on a 
fresh session (tested only on r-devel) starts a new page for the 
boxplot since it thinks that new=TRUE doesn't make sense (because 
there's no 'old' plot yet).

Deepayan