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

R语言:xfig()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-16 21:12:25 | 显示全部楼层 |阅读模式
xfig(grDevices)
xfig()所属R语言包:grDevices

                                        XFig Graphics Device
                                         XFIG图形设备

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

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

xfig starts the graphics device driver for producing XFig (version 3.2) graphics.
xfig开始生产XFIG(3.2版)图形图形设备驱动程序。

The auxiliary function ps.options can be used to set and view (if called without arguments) default values for the arguments to xfig and postscript.
辅助功能ps.options可以用来设置和查看(如果不带参数调用)xfig和postscript参数的默认值。


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


xfig(file = ifelse(onefile, "Rplots.fig", "Rplot%03d.fig"),
     onefile = FALSE, encoding = "none",
     paper = "default", horizontal = TRUE,
     width = 0, height = 0, family = "Helvetica",
     pointsize = 12, bg = "transparent", fg = "black",
     pagecentre = TRUE, defaultfont = FALSE, textspecial = FALSE)



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

参数:file
a character string giving the name of the file.   For use with onefile = FALSE give a C integer format such as "Rplot%03d.fig" (the default in that case). (See postscript for further details.)  
给文件名字符串。为以onefile = FALSE给一个C整数格式,如使用"Rplot%03d.fig"(在这种情况下,默认)。 (见postscript进一步的细节。)


参数:onefile
logical: if true allow multiple figures in one file. If false, assume only one page per file and generate a file number containing the page number.
逻辑:如果真正允许在一个文件中的多个数字。如果为false,假设每个文件只有一个页面,并生成一个文件包含页码。


参数:encoding
The encoding in which to write text strings.  The default is not to re-encode.  This can be any encoding recognized by iconv: in a Western UTF-8 locale you probably want to select an 8-bit encoding such as latin1, and in an East Asian locale an EUC encoding.  If re-encoding fails, the text strings will be written in the current encoding with a warning.
在其中写入文本字符串编码。默认是不重新编码。这可以是任何编码iconv确认:在西方的UTF-8语言环境中,你可能想选择,如latin1,在东亚区域设置EUC 8位编码编码。如果重新编码失败,警告当前编码的文本字符串将被写入。


参数:paper
the size of paper region.  The choices are "A4", "Letter" and "Legal" (and these can be lowercase).  A further choice is "default", which is the default.  If this is selected, the papersize is taken from the option "papersize" if that is set to a non-empty value, otherwise "A4".
大小纸张区域。选择"A4","Letter"和"Legal"(这些可以是小写)。另一项选择是的"default",这是默认的。如果选择此选项,纸张大小选项"papersize"如果它被设置为一个非空值,否则"A4"。


参数:horizontal
the orientation of the printed image, a logical.  Defaults to true, that is landscape orientation.
打印图像的方向,一个逻辑。默认为true,这是横向。


参数:width, height
the width and height of the graphics region in inches.  The default is to use the entire page less a 0.5 inch overall margin in each direction.  (See postscript for further details.)
英寸图形区域的宽度和高度。默认是使用整个页面少了一个0.5英寸的每个方向的整体利润率。 (见postscript进一步的细节。)


参数:family
the font family to be used.  This must be one of "AvantGarde", "Bookman", "Courier", "Helvetica" (the default), "Helvetica-Narrow", "NewCenturySchoolbook", "Palatino" or "Times".  Any other value is replaced by "Helvetica", with a warning.
要使用的字体家族。这必须是"AvantGarde","Bookman","Courier","Helvetica"(默认),"Helvetica-Narrow","NewCenturySchoolbook","Palatino"或"Times"。任何其他值将被替换"Helvetica",一个警告。


参数:pointsize
the default point size to be used.
要使用默认的点大小。


参数:bg
the initial background color to be used.
要使用的初始背景颜色。


参数:fg
the initial foreground color to be used.
要使用的初始前景色。


参数:pagecentre
logical: should the device region be centred on the page?
逻辑:应在页面上为中心的设备区域?


参数:defaultfont
logical: should the device use xfig's default font?
逻辑:设备应使用xfig的默认字体?


参数:textspecial
logical: should the device set the textspecial flag for all text elements. This is useful when generating pstex from xfig figures.
逻辑:设备设置所有文本元素的textspecial标志。这是有用的,时产生XFIG数字pstex。


Details

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

Although xfig can produce multiple plots in one file, the XFig format does not say how to separate or view them.  So onefile = FALSE is the default.
虽然xfig可以产生一个文件的多个图,XFIG格式不说,如何区分或查看他们。所以onefile = FALSE是默认的。

The file argument is interpreted as a C integer format as used by sprintf, with integer argument the page number. The default gives files "Rplot001.fig", ..., "Rplot999.fig", "Rplot1000.fig", ....  
file参数被解释为一个C整数格式由sprintf整数参数,页码。默认给文件Rplot001.fig,Rplot999.fig,Rplot1000.fig,....

Line widths as controlled by par(lwd=) are in multiples of 5/6*1/72 inch.  Multiples less than 1 are allowed.  pch="." with cex = 1 corresponds to a square of side 1/72 inch.  
作为控制线宽度par(lwd=)5/6 * 1/72英寸的倍数。允许比1的倍数。 pch="."用cex = 1对应侧1/72英寸的正方形。

Windows users can make use of WinFIG (http://www.schmidt-web-berlin.de/WinFIG.htm, shareware), or XFig under Cygwin.
Windows用户可以在Cygwin下的使用WinFIG(http://www.schmidt-web-berlin.de/WinFIG.htm,共享),或XFIG。


公约----------Conventions----------

This section describes the implementation of the conventions for graphics devices set out in the “R Internals Manual”.
本节介绍的“R内部手册”所载的图形设备的公约的执引号况。

The default device size is the paper size with a 0.25 inch border on all sides.
默认设备的大小是0.25英寸的边界上各方的纸张尺寸。

Font sizes are in big points.
字体大小大点。

The default font family is Helvetica.
默认字体是黑体。

Line widths are integers, multiples of 5/432 inch.
线宽是整数,5/432英寸的倍数。

Circle radii are multiples of 1/1200 inch.
圈半径分别为1/1200英寸的倍数。

Colours are interpreted by the viewing/printing application.
颜色被解释查看/打印应用程序。


注意----------Note----------

Only some line textures (0 <= lty < 4) are used.  Eventually this may be partially remedied, but the XFig file format does not allow as general line textures as the R model.  Unimplemented line textures are displayed as dash-double-dotted.
只有一些线纹理(0 <= lty < 4)。最终,这可能是部分纠正,但不允许R模型的总路线纹理xfig的文件格式。未用线纹理显示为破折号双虚线。

There is a limit of 512 colours (plus white and black) per file.
有512种颜色,每个文件(加上白色和黑色)的限制。


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



Brian Ripley.  Support for <code>defaultFont</code> and <code>textSpecial</code>
contributed by Sebastian Fischmeister.




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

Devices, postscript, ps.options.
Devices,postscript,ps.options。

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-1-23 22:32 , Processed in 0.019712 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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