Sorry, I must have made a mistake before.
In my R, the attached replacement for image.default DOES put the axes last, and
does look better.
I also tested my code for the change in the eps header on some linux machines
(I'm using a mac), and there the grid effects were less pronounced, and my co
Hi,
I was going to suggest panel.last to redraw a box around the image,
but for some reason it does not seem to come after the image neither
(this is perhaps to be expected from the note in ?plot.default).
plot(1,1, panel.last={box(lwd=50, col="#FF")})
image(volcano, panel.last={box(lwd=50,
Some more digging.
1.
The following code will fix density plots for me:
---
.ps.prolog=grDevices:::.ps.prolog
i=grep("/p2",.ps.prolog)
.ps.prolog[i] = "/p2 { bg gsave fill grestore 0.001 setlinewidth stroke
newpath } def"
---
2.
It seems that it doesn't matter where in image.default() the box i
Hi,
When R generates density plots and these are exported to postscript(
a=matrix(1:100,10,10);image(a,col=rainbow(100);dev.copy2eps(file="image.eps")
)
The result often looks bad when rendered on screen. The help page states that
this is because programs use anti-aliasing. That seems to be true