[R] Sweave figure aspect ratio

2007-09-09 Thread Werner Wernersen
Hello, using Sweave, is there any option to preserve the original aspect ratio of plots generated from R code? Consider this Sweave chunk: test,echo=F,fig=T,width=2,height=2= x - 1:10 y - sin(x) par(mar=c(4,4,0,4)) plot(x,y, xlab=x label, ylab=y label ) @ In Latex, I want to

Re: [R] Sweave figure aspect ratio

2007-09-09 Thread Duncan Murdoch
On 09/09/2007 7:24 AM, Werner Wernersen wrote: Hello, using Sweave, is there any option to preserve the original aspect ratio of plots generated from R code? Consider this Sweave chunk: test,echo=F,fig=T,width=2,height=2= x - 1:10 y - sin(x) par(mar=c(4,4,0,4)) plot(x,y, xlab=x

Re: [R] Sweave figure aspect ratio

2007-09-09 Thread Werner Wernersen
Many thanks for the quick reply, Duncan. Now I see that something is going wrong in R already. I overlooked this because the R window was so big. I have to persuade plotViewport() not to create a square area but one which takes the different margins into account. Best regards, Werner ---