[R] using split.screen() in Sweave

Jason Turner jasont at indigoindustrial.co.nz
Wed Oct 8 19:25:33 CEST 2003


Christoph Lehmann wrote:

> Dear R and sweave users
> 
> A further problem, which I couldn't resolve, using the manual: In R I
> use the split.screen command to put e.g. two timecourses one above the
> other into one plot:
> 
> split.screen(c(2,1))
> screen(1)
> plot(stick,type='h', col="red",lwd=2)
> screen(2)
> plot(deconvolution.amplitude,type='h',col="blue",lwd=2)
> 
> Is there a similar way, doing this in Sweave?

I've never used split.screen.  Check out ?par, and read the entries for 
mfcol and mfrow.  Also check out ?layout.

HTH

Jason
-- 
Indigo Industrial Controls Ltd.
http://www.indigoindustrial.co.nz
64-21-343-545
jasont at indigoindustrial.co.nz




More information about the R-help mailing list