[R-SIG-Mac] tiff output on Mac
michael.denslow at gmail.com
Fri Oct 16 02:42:18 CEST 2009
>> Dear R Mac folks,
>> I have not seen a thread on this so I thought I would get some input
>> regarding tiff output on a Mac.
>> I am currently running OS 10.6.1 and R 2.9.2 GUI 1.29 Tiger build 32-bit
>> I realize that the easiest way to save a plot is to select File, Save
>> As. Which outputs a .pdf file. However, if I insert this graphic into
>> Microsoft Word and send it to a friend on Windows the file gets
>> mangled (the quality is decreased significantly). So I am working on
>> just writing high quality tiff files which seem to display well all on
>> both platforms. Tiffs also seems to be one of the preferred file types
>> for many journals in my field.
> PNG is the format of choice these days and better supported in general. TIFF
> is more rare, but there is some support.
> If you want 1:1 result of what you see in the Quartz window then the best
> way is to use quartz.save() as it maintains sizes to produce WYSIWYG
> results, e.g:
Thank you David and Simon,
This is very helpful. I was not aware of quartz.save() or the Grab utility.
Also I will have another look at the png format.
>> Here are the options I have found that work on Macs.
>> # requires Ghostscript
>> bitmap(file="MacTest.tiff", type = "tifflzw",
>> height = 7, width = 7, res = 600,
>> units = "in")
>> tiff('Mactest.tiff', width = 5, height = 5, units = 'in', res = 600)
>> quartz(height = 7, width = 7, type = 'tiff', file = 'MacTest.tiff',bg
>> = 'white',dpi = 600)
>> # line are not all dark in output, not sure which tiff type to use...
>> dev2bitmap(file = 'MacTest.tiff', type = 'tiff24nc', height = 7, width
>> = 7, res = 600,
>> units = 'in')
>> I have noticed that for bitmap and tiff the font and symbol size seems
>> to differ between the R session plot and the output plot.
>> Are there other graphic output options that I am missing here? Any
>> tips would be most appreciated.
>> Thanks in advance,
I.W. Carpenter Jr. Herbarium [BOON]
Department of Biology
Appalachian State University
Boone, North Carolina U.S.A.
-- AND --
Southeast Regional Network of Expertise and Collections
More information about the R-SIG-Mac