找回密码
 注册
查看: 569|回复: 0

R语言 geneplotter包 savepng()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-25 18:56:35 | 显示全部楼层 |阅读模式
savepng(geneplotter)
savepng()所属R语言包:geneplotter

                                        Save the contents of the current graphics device to a file
                                         当前图形设备的内容保存到一个文件

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Save the contents of the current graphics device to file
当前图形设备的内容保存到文件


用法----------Usage----------


  savepdf(fn, dir, width=6, asp=1)
  saveeps(fn, dir, width=6, asp=1)
  savepng(fn, dir, width=480, asp=1)
  savetiff(fn, dir, density=360, keeppdf=TRUE, ...)



参数----------Arguments----------

参数:fn
character: name of the output file (without extension).  An extension .pdf, .eps, .png, or .tiff will be added automatically.
特点:输出文件的名称(不含扩展名)。扩展.pdf,.eps,.png或.tiff将自动添加。


参数:dir
character: directory to which the file should be written.
性格:应写入该文件的目录。


参数:width
numeric: width of the image in pixels (png) or inches (pdf, eps).
数字:宽度像素的图像(PNG)或英寸(PDF,EPS)。


参数:asp
numeric: aspect ratio; height=width*asp.
数字:宽高比;高度=宽度* ASP。


参数:density
pixels per inch (see Details).
每英寸的像素(见详情)。


参数:keeppdf
Should the intermediate PDF file (see Details) be kept? If FALSE, it is deleted before the function returns.
应保持中间的PDF文件(见详情)?如果FALSE,它在函数返回前删除。


参数:...
Further arguments that are passed on to savepdf (see Details).
进一步的传递savepdf(见详情)的论点。


Details

详情----------Details----------

The functions are called for their side effect, writing a graphics file.
被称为其副作用的功能,编写一个图形文件。

savepdf, savepng, and saveeps use the devices pdf, png, and postscript, respectively.
savepdfsavepng,saveeps使用的设备pdf,png,postscript,分别。

There is currently no TIFF device for R, so savetiff works differently. It relies on the external tool convert from the ImageMagick software package. First, savetiff produces a PDF files with savepdf, then uses system to invoke convert with the parameter density. savetiff does not check for the existence of  convert or the success of the system call, and returns silently no matter what.
目前还没有的TIFF设备为R,所以savetiff的工作方式不同。它依赖于外部工具convertImageMagick的软件包。首先,savetiff生产savepdfPDF文件,然后使用system调用convert参数density的。 savetiff不检查存在convert或系统调用成功,并返回默默不管什么。


值----------Value----------

Character: name of the file that was written.
性格:书面文件的名称。


作者(S)----------Author(s)----------


Wolfgang Huber <a href="http://www.dkfz.de/abt0840/whuber">http://www.dkfz.de/abt0840/whuber</a>



参见----------See Also----------

dev.copy, pdf, png,
dev.copy,pdf,png


举例----------Examples----------


  x = seq(0, 20*pi, len=1000)
  plot(x*sin(x), x*cos(x), type="l")

  try({   ## on some machines, some of the devices may not be available[#在某些机器上,一些设备可能无法使用]
    c(
      savepdf("spiral", dir=tempdir()),
      savepng("spiral", dir=tempdir()),
      saveeps("spiral", dir=tempdir()),
      savetiff("spiral", dir=tempdir())
     )
  })   

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-2-7 19:49 , Processed in 0.027641 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表