[R] Making TIFF images with rtiff

Stephen D. Weigand weigand.stephen at charter.net
Fri Jan 12 05:25:04 CET 2007


On Jan 11, 2007, at 9:33 PM, Inman, Brant A. M.D. wrote:

> Many medical journals and publishers require that images, whether
> photographs or line art, be submitted as high resolution .TIFF images.
> One option for R users is to produce an image in one format and to
> convert it to a .TIFF file using a second software program.  My
> experience has been that this option often results in images of poorer
> quality, often with blurry contours, and a loss of resolution.  A 
> second
> and better option would be to make .TIFF files directly from the 
> graphic
> output of R.


Have you tried bitmap()?. You might need to install ghostscript
before it works on your system but the results are super.

I use

bitmap(blah, type = "png256", res = 1200)

to make *.png files which are small and can be inserted in to an
MS Word manuscript for review.

When a TIFF is needed by the journal,

bitmap(blah, type = "tifflzw", res = 1200)

will do the trick. (If a color plot is being created, you can use
something like type = "tiff24nc". The color files are huge but
can be zipped to something reasonable.)

Hope this helps,

Rochester, Minnesota, USA

More information about the R-help mailing list