Skip to content

eps/pdf write help

2 messages · Mohan Singh, Philipp Pagel

#
On Thu, Mar 12, 2009 at 03:06:30PM +0000, Mohan Singh wrote:
Did you remember to close the pdf files? Something like the following
should work:

x <- seq(0, 10, 0.01)
for (i in 1:5) {
	pdf(paste('plot', i, '.pdf', sep=''))
	plot(x, x^i)
	dev.off()
}

cu
	Philipp