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

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

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

                                        Replacements of traditional graphics functions
                                         传统的图形功能替代的

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

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

These functions are intended to replace common low level traditional graphics functions, primarily for use in panel functions.  The originals can not be used (at least not easily) because lattice panel functions need to use grid graphics.  Low level drawing functions in grid can be used directly as well, and is often more flexible.  These functions are provided for convenience and portability.
这些功能的目的是,以取代常见的低水平传统的图形功能,主要用于在使用面板功能。原件不能使用(至少不容易),因为晶格面板功能需要使用网格图形。在电网水平低的绘图功能,可以直接使用,往往是更为灵活。这些功能提供了方便和可移植性。


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


lplot.xy(xy, type, pch, lty, col, cex, lwd,
         font, fontfamily, fontface,
         col.line, col.symbol, alpha, fill,
         origin = 0, ..., identifier, name.type)

llines(x, ...)
lpoints(x, ...)
ltext(x, ...)

## Default S3 method:[默认方法]
llines(x, y = NULL, type = "l",
       col, alpha, lty, lwd, ..., identifier, name.type)
## Default S3 method:[默认方法]
lpoints(x, y = NULL, type = "p", col, pch, alpha, fill,
        font, fontfamily, fontface, cex, ..., identifier, name.type)  
## Default S3 method:[默认方法]
ltext(x, y = NULL, labels = seq_along(x),
      col, alpha, cex, srt = 0,
      lineheight, font, fontfamily, fontface,
      adj = c(0.5, 0.5), pos = NULL, offset = 0.5, ..., identifier, name.type)  

lsegments(x0, y0, x1, y1, x2, y2,
          col, alpha, lty, lwd,
          font, fontface, ..., identifier, name.type)
lrect(xleft, ybottom, xright, ytop,
      x = (xleft + xright) / 2,
      y = (ybottom + ytop) / 2,
      width = xright - xleft,
      height = ytop - ybottom,
      col = "transparent",
      border = "black",
      lty = 1, lwd = 1, alpha = 1,
      just = "center",
      hjust = NULL, vjust = NULL,
      ..., identifier, name.type)
larrows(x0 = NULL, y0 = NULL, x1, y1, x2 = NULL, y2 = NULL,
        angle = 30, code = 2, length = 0.25, unit = "inches",
        ends = switch(code, "first", "last", "both"),
        type = "open",
        col = add.line$col,
        alpha = add.line$alpha,
        lty = add.line$lty,
        lwd = add.line$lwd,
        fill = NULL, ..., identifier, name.type)
lpolygon(x, y = NULL,
         border = "black", col = "transparent", fill = NULL,
         font, fontface, ..., identifier, name.type)

panel.lines(...)
panel.points(...)
panel.segments(...)
panel.text(...)
panel.rect(...)
panel.arrows(...)
panel.polygon(...)



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

参数: x, y, x0, y0, x1, y1, x2, y2, xy
locations. x2 and y2 are available for for S compatibility.   
位置。 x2和y2的兼容性。


参数:length, unit
determines extent of arrow head.  length specifies the length in terms of unit, which can be any valid grid unit as long as it doesn't need a data argument.  unit defaults to inches, which is the only option in the base version of the function, arrows.   
决定箭头程度。 lengthunit,它可以是任何有效的网格单元,只要因为它并不需要一个data参数指定的长度。 unit默认为英寸,这是唯一的选择在基础版本的功能,arrows。


参数:angle, code, type, labels, srt, adj, pos, offset
arguments controlling behaviour.  See respective base functions for details. For larrows and panel.larrows, type is either "open" or "closed", indicating the type of arrowhead.  
参数控制的行为。详情请参阅各自的基本功能。 larrows和panel.larrows,type或者"open"或"closed",指示箭头的类型。


参数:ends
serves the same function as code, using descriptive names rather than integer codes.  If specified, this overrides code
供应code相同的功能,使用描述性的名称,而不是整数代码。如果指定的话,这将覆盖code

graphical parameters.  fill applies to points when pch is in 21:25 and specifies the fill color, similar to the bg argument in the base graphics function points. For devices that support alpha-transparency, a numeric argument alpha between 0 and 1 can controls transparency.  Be careful with this, since for devices that do not support alpha-transparency, nothing will be drawn at all if this is set to anything other than 0.  fill, font and fontface are included in lpolygon and lsegments only to ensure that they are not passed down (as gpar does not like them).  
图形参数。 fill点pch是21:25“指定填充颜色,类似bg基本图形功能points参数。为支持alpha透明度的设备,一个数字参数alpha0和1之间可以控制透明度。小心处理这件事,因为设备不支持Alpha透明,不会得出如果此设置为0以外的所有。 fill,font和fontface都包含在lpolygon和lsegments只,以确保他们没有流传下来(gpar不喜欢它们)。


参数:origin
for type="h" or type="H", the value to which lines drop down.  
type="h"或type="H",值哪一行下降。


参数:xleft, ybottom, xright, ytop
see rect
看到rect


参数:width, height, just, hjust, vjust
finer control over rectangles, see grid.rect  
矩形更好地控制,看到grid.rect


参数:...
extra arguments, passed on to lower level functions as appropriate.   
额外的参数,传递给适当的较低级别的功能。


参数:identifier
A character string that is prepended to the name of the grob that is created.  
GROB,创建名被追加到一个字符串。


参数:name.type
A character value indicating whether the name of the grob should have panel or strip information added to it. Typically either "panel", "strip", "strip.left", or "" (for no extra information).  
一个字符值,该值指示是否GROB的名称应该有面板或带信息添加到它。通常要么"panel","strip","strip.left"或""(没有额外的信息)。


Details

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

These functions are meant to be grid replacements of the corresponding base R graphics functions, to allow existing Trellis code to be used with minimal modification.  The functions panel.* are essentally identical to the l* versions, are recommended for use in new code (as opposed to ported code) as they have more readable names.
这些功能是为了电网更换相应的的基础ŕ图形功能,允许现有的网格代码稍加修改。职能panel.*l*版本essentally相同,建议在使用新的代码(如反对移植的代码),因为他们有更多的可读名称。

See the documentation of the base functions for usage. Not all arguments are always supported. All these correspond to the default methods only.  
看到文档中使用的基本功能。并不是所有的参数都始终支持。所有这些对应仅默认的方法。


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

There is a new type="H" option wherever appropriate, which is similar to type="h", but with horizontal lines.
有一个新的type="H"选项,在适当的地方,这是类似type="h",但与水平线。


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


Deepayan Sarkar <a href="mailtoeepayan.Sarkar@R-project.org">Deepayan.Sarkar@R-project.org</a>



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

points, lines, rect, text, segments, arrows, Lattice
points,lines,rect,text,segments,arrows,Lattice

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


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

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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