Skip to content
Back to formatted view

Raw Message

Message-ID: <F83C6ACE124F3E4D83B3A90C9CA0922D07186C@exwa3-per.nexus.csiro.au>
Date: 2006-12-12T00:45:40Z
From: Jared.O'Connell at csiro.au
Subject: 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