[R] Combining bitmaps and plots - file too large
Jared.O'Connell at csiro.au
Jared.O'Connell at csiro.au
Tue Dec 12 01:45:40 CET 2006
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
More information about the R-help
mailing list