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
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
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
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
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
5 matches
Mail list logo