Displaying 2 results from an estimated 2 matches for "pngno".
Did you mean:
pgno
2005 Oct 08
1
add leading 0s to %d from png() {was Automatic creation of file names}
...up using the code below, but would much prefer
something like
png("test_%d.png",bg="white",width=1000,height=700)
where %d could be formatted like
formatC(%d,digits=0,wid=3,flag="0",mode="integer")
Thank you,
b.
#---works, but is rather complicated---
pngno <- 0 ; i <- 1
for (w in 1:53) {
if (i %in% c(4*0:100+1)) {
pngno <- pngno + 1
png(paste("test_",formatC(pngno,digits=0,wid=4,flag="0",mode="integer"),
".png",sep=""),bg="white",width=1000,height=750)
par(mfrow=...
2004 Sep 24
1
Raster images from sweave
Is it possible to get sweave to produce raster (eg. png/jpg) plot
images? I'm writing a vignette that contains plots with tens of
thousands of points which results in very large pdf files (13 megs
before compression).
Thanks,
Hadley