Re: [R] Saved EPS does not match screen when using bquote(.(i))

2011-06-28 Thread John Kruschke
Many thanks to Uwe Ligges, Peter Ehlers, and Dennis Murphy for suggesting work-arounds for this bug. Because the suggestions are work-arounds, rather than actually correcting the bug, I have opted simply to copy and paste the plotting commands a few times with the subscripts specified as constants

Re: [R] Saved EPS does not match screen when using bquote(.(i))

2011-06-23 Thread Peter Ehlers
I think that there may be a problem with the way bquote(), for() and savePlot() play together in the OP's example (multiple plots on a windows device; bquote using the loop index). Here's a version using replayPlot(): ## show mu with subscripts 4 and 9: x11() par(mfrow = c(2,1)) for (i in

Re: [R] Saved EPS does not match screen when using bquote(.(i))

2011-06-23 Thread Uwe Ligges
On 23.06.2011 07:14, Dennis Murphy wrote: Hi: As Uwe suggested... pdf('testgraph.pdf') layout( matrix( 1:2 , nrow=2 ) ) for ( i in 1:2 ) { plot( 0 , 0 , xlab=bquote(mu[.(i)]) ) } dev.off() postscript('testgraph.ps') layout( matrix( 1:2 , nrow=2 ) ) for ( i in 1:2 ) { plot( 0 , 0 , xl

Re: [R] Saved EPS does not match screen when using bquote(.(i))

2011-06-22 Thread Dennis Murphy
Hi: As Uwe suggested... pdf('testgraph.pdf') layout( matrix( 1:2 , nrow=2 ) ) for ( i in 1:2 ) { plot( 0 , 0 , xlab=bquote(mu[.(i)]) ) } dev.off() postscript('testgraph.ps') layout( matrix( 1:2 , nrow=2 ) ) for ( i in 1:2 ) { plot( 0 , 0 , xlab=bquote(mu[.(i)]) ) } dev.off() png('testgrap

[R] Saved EPS does not match screen when using bquote(.(i))

2011-06-22 Thread John Kruschke
Here's a fairly minimal-case example in which the saved EPS does not match the screen. The error comes when using bquote(.(i)) instead of bquote(1), as demonstrated by the two minimally different cases below. Very strange. Any clues as to why? # begin --- # Version