Jared.O'Connell at csiro.au
2006-Dec-12 00:45 UTC
[R] Combining bitmaps and plots - file too large
Hello, I wish to draw a bitmap image and a standard plot in a split window, multiple times, output to a pdf eg. library(pixmap) pdf("test.pdf") for(i in 1:50) { par(mfrow=c(1,2)) p1 = read.pnm(paste("img",i,".ppm",sep="")) plot(x,y) } dev.off() The end result is a pdf file > 1GB, obviously not very portable. The .ppm's I'm using are around 1MB so they are not some huge resolution. I've tried several different methods of optimising .pdfs externally (eg. ps2pdf -dPDFSETTINGs=\screen) without much luck. Any suggestions? Regards, Jared
Jared.O'Connell at csiro.au
2006-Dec-12 23:26 UTC
[R] Combining bitmaps and plots - file too large
I found a half decent solution to this, output the plots then combine them with the image files in a latex document (using some messy shellscripting). Sweave would be more suitable, but this worked fine. cheers, Jared