Mark Heckmann
2011-Feb-02 15:49 UTC
[R] drawing from one cell to another using layout() - possible?
Is it possible to cross the cell boundaries set by layout using base graphics? I.e. I want to draw e.g. a line from one layout cell to another. Is there a way to do that? layout(matrix(c(1,2), byrow=TRUE, ncol=2)) plot.new() text(0,0,paste(rep("a", 200), collapse=""), xpd=T) layout.show(2) I would like the a's to not end at the layout borders of the left cell. Thanks in advance, Mark PS. I need to use base not groid graphics, though it may be simpler... -- Mark Heckmann (Dipl. Wirt.-Ing.) phone +49 (0) 421/1614618
Uwe Ligges
2011-Feb-05 18:34 UTC
[R] drawing from one cell to another using layout() - possible?
On 02.02.2011 16:49, Mark Heckmann wrote:> Is it possible to cross the cell boundaries set by layout using base graphics? > I.e. I want to draw e.g. a line from one layout cell to another. > Is there a way to do that? > > layout(matrix(c(1,2), byrow=TRUE, ncol=2)) > plot.new() > text(0,0,paste(rep("a", 200), collapse=""), xpd=T) > > layout.show(2) > > I would like the a's to not end at the layout borders of the left cell.Use xpd=NA rather than xpd=TRUE. See ?par for the reason why. Uwe Ligges> Thanks in advance, > Mark > > PS. I need to use base not groid graphics, though it may be simpler...