R: tiff( ) won't compress or set resolution to 300 ppi

*爱你&永不变心* 提交于 2019-12-04 18:21:22

I verified your example with R 2.15.1 on GNU/Linux by appending

hist(rnorm(1000))
dev.off()

to your tiff() call and checked the resulting file "file.tiff" with ImageMagick's command line tool identify (most output omitted):

Image: file.tiff
  Format: TIFF (Tagged Image File Format)
  Class: DirectClass
  Geometry: 2049x2049+0+0
  Resolution: 300x300
  Print size: 6.83x6.83
[...]
  Compression: LZW
[...]
  Filesize: 70KB
[...]

The R command seems to do exactly what you intend to do. I suspect that either you create the TIFF file not in the manner you describe or the tool you use to check the TIFF file's properties is faulty.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!