全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
1920 1
2010-08-19
悬赏 10 个论坛币 未解决
现在遇到使用R图,需要变成.tiff格式,并且要求:
1) Figures that fit exactly the width of 1 column (72 mm) or 2 columns (148 mm) expedite the publication process.
2)1200 DPI/PPI for monochrome (black and white line art).
This resolution applies to images that are purely black and white. Images such as line graphs or diagrams fall in this category. If your image editing program allows it, LZW file compression can be used on a monochrome image to greatly reduce its file size.


现在假设c是自变量一组值,而pvalue是因变量亦是一组值,画它们的平面图:
tiff(file="Fig.3.tif")
plot(c,pvalue,type="l",xlab=("C"),ylab=c("P-Value"))
abline(h=0.05)
abline(v=shang,lty=2)
dev.off()

怎么实现上边的两点要求呢?即1200 DPI/PPI;72mm宽呢?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2010-8-21 16:58:08
请试用下列程序:

c <- 1:100
pvalue <- abs(sin(c/30))
setwd("D:/temp")

tiff(filename="Fig3.tif", width=72, height=72, units='mm', res=1200,
     compression='lzw')
plot(c, pvalue, type='l', xlab=("C"), ylab=("P-Value"))
abline(h=0.5)
abline(v=50, lty=2)
dev.off()

Fig3.zip
大小:(68.81 KB)

 马上下载

本附件包括:

  • Fig3.tif

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群