Skip to content

large files produced from image plots?

3 messages · Paul Murrell, Baptiste Auguie, Stephen T.

#
Hi

[shifted this to r-devel]

I can't reproduce this yet on my systems, but I have heard of at least 
one other example of a raster-related crash (on a 64-bit system I think).

Baptiste: I would love to see that broken PDF if you still have it.

Paul
On 9/09/2010 8:00 a.m., baptiste auguie wrote:

  
    
#
Hi,

Oops, I probably spoke too quickly about the pdf() output. I attach
the quartz() result, the pdf() result, and a screenshot of what I saw
using the built-in Preview program of MacOS... Here the pdf appeared
to be wrong, with a strange interpolation going on. I opened the same
file in Acrobat and it's fine, so I guess it's a bug in the pdf
viewer, as is often the case with pdf artifacts.

My code:


pdf("test-raster.pdf")
image <- as.raster(matrix(0:1, ncol=5, nrow=3)); plot.new()
rasterImage(image, 0, 0, 1, 1, interpolate=FALSE)
dev.off()

Best,

baptiste
On 8 September 2010 22:42, Paul Murrell <p.murrell at auckland.ac.nz> wrote:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdf-raster.pdf
Type: application/pdf
Size: 2266 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20100909/a631a286/attachment.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quartz-raster.pdf
Type: application/pdf
Size: 5544 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20100909/a631a286/attachment-0001.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: screenshot-pdf-Preview.png
Type: image/png
Size: 72584 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20100909/a631a286/attachment.png>