Re: [R] Lattice: how to change the canvas size with Sweave

2013-11-17 Thread Gerrit Draisma
Oops, I forget to write the I included the lines pdf()..(dev.off() in the file pietje.R generated by Stangle. And now I see that included pietje.tex in reality was named pietje.rnw with pietje.tex the result from Sweave. Apologies for this confusion Gerrit. op 11/17/2013 12:43 PM Gerrit Draism

[R] Lattice: how to change the canvas size with Sweave

2013-11-17 Thread Gerrit Draisma
Dear all, I would like to include a wide graph with narrow height in my LaTeX output. Up to now I only get it done using Stangle and including pdf("pietje-001.pdf",width=7,height=4) xyplot(...) dev.off() What is the correct way of setting the canvas size? Thanks. Gerrit Draisma ==