2012-03-19 45 views
0

我需要为出版物制作出版物图,但是我在扩大图的同时保持其元素的相对大小时遇到​​问题。如何增加图的大小,同时保持其元素的相对比例

出版商要求

Submit the image as TIFF, at one of the following resolutions: 
Color: 300 dpi 
Grayscale: 600 dpi 
Line art: 1200 dpi 
Text-based graphics should be provided as 300 dpi, close-cropped TIFFs, sized to match print. 
To maximize the size of the figures on the PDF/reprint, figures should be submitted at the width of 2 columns (about 6.75 inches, 40 picas wide). 

例如

tiff(filename="Test1.tiff",width=400,height=400) 
plot(c(2,2,4,4), c(2,4,2,4),xlim=c(0,5), ylim=c(0,10), xlab="Text xlab", ylab="Test ylab", pch=16, cex=1.5) 
polygon(c(2,2,4,4),c(2,4,4,2), col="darkblue") 
text(1,8,"Test") 
dev.off() 

tiff(filename="Test2.tiff",width=1200, height=1200) 
plot(c(2,2,4,4), c(2,4,2,4),xlim=c(0,5), ylim=c(0,10), xlab="Text xlab", ylab="Test ylab", pch=16, cex=1.5) 
polygon(c(2,2,4,4),c(2,4,4,2), col="darkblue") 
text(1,8,"Test") 
dev.off() 

在本例中试验2越大(如图形区域),但是该轴和标签出现多小得多。我该如何解决这个问题?

非常感谢

回答

4

您需要更改tiff文件的分辨率。因此请尝试如下所示:

ppi = 300 
tiff("mygraph.tiff", width=6.75*ppi, height=6*ppi, res=ppi) 
plot(c(2,2,4,4), c(2,4,2,4),xlim=c(0,5), ylim=c(0,10), 
     xlab="Text xlab", ylab="Test ylab", 
     pch=16, cex=1.5) 
polygon(c(2,2,4,4),c(2,4,4,2), col="darkblue") 
text(1,8,"Test") 
dev.off() 

但是,大多数(所有?)期刊也接受postscript或pdf格式。对于折线图,请使用这些矢量格式。使用矢量格式意味着图形将完美缩放,不像光栅格式。

+0

非常感谢您为您的swer。不幸的是,并非所有期刊都接受EPS。宽度和高度选项中的因子6.75和6分别来自哪里? – ECII 2012-03-19 17:10:33

+0

6.75来自您的问题“6.75英寸宽”。 6是我的标准默认;) – csgillespie 2012-03-19 17:27:19

0

要保持绘图文本的默认分值,缩放分数需要9/5的高度。

默认的pointsize = 12点,其中1点= 1/72在

默认高度=(480个像素)/(72 PPI)=(七十二分之四百八十○)在

缩放系数=(12分)/(480个像素/ 72 PPI)=(9/5)分/在

按照实施例以上,以6英寸的期望的高度:

tiff("mygraph.tiff", res=ppi, height=6*ppi, width=6.75*ppi, pointsize=6*(9/5))

相关问题