[R] drawing from one cell to another using layout() - possible?

Mark Heckmann mark.heckmann at gmx.de
Wed Feb 2 16:49:46 CET 2011


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



More information about the R-help mailing list