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

R语言 sfsmisc包 ps.latex()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 01:40:53 | 显示全部楼层 |阅读模式
ps.latex(sfsmisc)
ps.latex()所属R语言包:sfsmisc

                                        PostScript/PDF Preview Device with Optional ‘LaTeX’ Touch
                                         可选“乳胶”触摸设备的PostScript / PDF预览

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

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

All functions start a pseudo PostScript or Acrobat preview device, using postscript or pdf, and further registering the file name for subsequent calls to pdf.end() or ps.end().
启动一个虚拟的PostScript或Acrobat预览设备的所有功能,使用postscript或pdf,并进一步注册的文件名的后续调用pdf.end()或ps.end()。


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


pdf.do(file, paper = "default", width = -1, height = -1, onefile = FALSE,
       title = NULL, version = "1.4", ...)

pdf.latex(file, height = 5 + main.space * 1.25,  width = 9.5,
          main.space=FALSE, lab.space = main.space,
          paper = "special", title = NULL,
          lab=c(10, 10, 7), mgp.lab=c(1.6, 0.7, 0), mar=c(4, 4, 0.9, 1.1), ...)

ps.do(file, width=-1, height=-1, onefile=FALSE, horizontal=FALSE,
      title = NULL, ...)

ps.latex(file, height = 5 + main.space * 1.25,  width = 9.5,
         main.space=FALSE, lab.space = main.space,
         paper = "special", title = NULL,
         lab=c(10, 10, 7), mgp.lab=c(1.6, 0.7, 0), mar=c(4, 4, 0.9, 1.1), ...)



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

参数:file
character giving the PostScript/PDF file name to be written.
要写入字符的PostScript / PDF文件名。


参数:height
device height in inches, height * 2.54 are cm.  The default is 5 plus 1.25 iff main.space.
设备的高度以英寸为单位,height * 2.54厘米。默认值是5加1.25,当且仅当main.space。


参数:width
device width in inches; for this and height, see postscript.
设备宽度英寸;为这和height,看到postscript。


参数:onefile, horizontal
logicals passed to postscript(..) or pdf(..), most probably to be left alone.
逻辑值通过postscript(..)或pdf(..),最有可能被单独留在家中。


参数:title
PostScript/PDF (not plot!) title passed to postscript() or pdf(); by default use a title with R version and file in it.
(而不是图!)的PostScript / PDF标题通过了postscript()或pdf();默认情况下,使用R版本和file的标题。


参数:version
a string describing the PDF version that will be required to view the output, see pdf; our (high) default ensures alpha-transparency.
一个字符串来描述,将需要查看输出的PDF版本,请参阅pdf;(高)默认情况下,确保α-透明度。


参数:main.space
logical; if true, leave space for a main title (unusual for LaTeX figures!).
逻辑,如果情况属实,留出空间的主标题(不寻常为LaTeX的数字!)。


参数:lab.space
logical; if true, leave space for x- and y- labels (by not subtracting from mar).
逻辑,如果情况属实,留出空间的X和Y标签(减去mar)。


参数:paper
character (or missing), see postscript.  Only if this is "special" (or missing) are your choices of width and height completely honored (and this may lead to files that cannot print on A4) with resizing.
字符(或丢失),请参阅postscript。只有当这是"special"(或失踪)是你的选择width和height完全荣幸(这可能导致文件不能打印在A4)与调整大小。


参数:lab
integer of length 3, lab[1:2] are desired number of tick marks on x- and y- axis, see par(lab=).
整数的长度为3,lab[1:2]所需的刻度标记的数量,在x-轴和y轴,请参阅par(lab=)。


参数:mgp.lab
three decreasing numbers determining space for axis labeling, see par(mgp=), the default is here smaller than usual.
人数减少的确定空间坐标轴标签,看到par(mgp=),默认的是这里比平常小。


参数:mar
four numbers, indicating marginal space, see par(mar=), the default is here smaller than usual.
四个数字,这说明边际的空间,看到par(mar=),默认的是这里比平常小。


参数:...
arguments passed to ps.do() or pdf.do() from ps.latex / pdf.latex and to ps.options from ps.do/pdf.do.
参数传递给ps.do()或pdf.do()ps.latex/pdf.latex和ps.optionsps.do/pdf.do。


Details

详细信息----------Details----------

ps.latex and pdf.latex have an additional LaTeX  flavor, and just differ by some extra par settings from the *.do siblings: E.g., after ps.do(..) is called, the graphical parameters c("mar", "mgp", "lab") are reset (to values that typically are better than the defaults for LaTeX figures).
ps.latex和pdf.latex有一个额外的LaTeX的味道,只是不同的一些额外的par设置*.do的兄弟姐妹:例如,在ps.do(..)被调用时,图形参数c("mar", "mgp", "lab")是复位(通常是更好的LaTeX的数字比默认的值)。

Whereas the defaults for paper, width, and height differ between pdf and  postscript, they are set such as to provide very similar functionality, for the functions ps.do() and pdf.do(); e.g., by default, both use a full plot on portrait-oriented page of the default paper, as per getOption("papersize").
而的默认值paper,width和height的pdf和postscript,他们如能提供非常相似的功能,该功能之间的不同ps.do()和pdf.do();例如,默认情况下,都使用一个完整的图肖像面向页的默认纸张,每getOption("papersize")。


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

A list with components
组件列表


参数:old.par
containing the old par values
包含旧par值


参数:new.par
containing the newly set par values
新设置的par值


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


Martin Maechler



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

ps.end, pdf, postscript, dev.print.
ps.end,pdf,postscript,dev.print。


实例----------Examples----------


if(interactive()) {

ps.latex("ps.latex-ex.ps", main= TRUE)
  data(sunspots)
  plot(sunspots,main=paste("Sunspots Data, n=",length(sunspots)),col="red")
ps.end()

pdf.latex("pdf.latex-ex.pdf", main= TRUE)
  data(sunspots)
  plot(sunspots,main=paste("Sunspots Data, n=",length(sunspots)),col="red")
pdf.end()

ps.do("ps_do_ex.ps")
   example(plot.function)
ps.end()

pdf.do("pdf_do_ex.pdf", width=12, height=5)
   plot(sunspots, main="Monthly Sunspot numbers (in Zurich, then Tokyo)")
pdf.end()
}

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-21 20:04 , Processed in 0.023850 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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