[R] drawing from one cell to another using layout() - possible?
Uwe Ligges
ligges at statistik.tu-dortmund.de
Sat Feb 5 19:34:14 CET 2011
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...
More information about the R-help
mailing list