Dear R experts,

I am trying to save three plots using tiff graphics devices; however the
following code only produces two files (Rplot002.tif and Rplot003.tif)
showing figures 1 and 3. Here is a simplified ex code



tiff(filename ="Rplot%03d.tif",width=24,height=20,units="cm",res=300,
pointsize=10, compression = "lzw")

plot(1)

mtext("Fig 1",side=3,line=4,adj=0.50,padj=2,col="black",cex=1)

plot(2)

mtext("Fig 2",side=3,line=4,adj=0.50,padj=2,col="black",cex=1)

plot(3)

mtext("Fig 3",side=3,line=4,adj=0.50,padj=2,col="black",cex=1)

dev.off()



Using pdf () produces the correct 3 figures but I want to use tiff images
.Any clues why this occurs?

I am opening a tiff graphics device and writing plots to files in a loop so
I need to have a single call to tiff().

Thanks,
John

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to