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

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

[复制链接]
发表于 2012-2-16 18:07:59 | 显示全部楼层 |阅读模式
panel.superpose(lattice)
panel.superpose()所属R语言包:lattice

                                         Panel Function for Display Marked by groups
                                         分组显示面板功能标示

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

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

These are panel functions for Trellis displays useful when a grouping variable is specified for use within panels. The x (and y where appropriate) variables are plotted with different graphical parameters for each distinct value of the grouping variable.
这些格子显示面板内使用指定分组变量时有用的面板功能。 x(y酌情)变量绘制不同的图形参数为每个分组变量的不同值。


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


panel.superpose(x, y = NULL, subscripts, groups,
                panel.groups = "panel.xyplot",
                ...,
                col, col.line, col.symbol,
                pch, cex, fill, font,
                fontface, fontfamily,
                lty, lwd, alpha,
                type = "p", grid = FALSE,
                distribute.type = FALSE)
panel.superpose.2(..., distribute.type = TRUE)

panel.superpose.plain(...,
                      col, col.line, col.symbol,
                      pch, cex, fill, font,
                      fontface, fontfamily,
                      lty, lwd, alpha)



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

参数:x,y
Coordinates of the points to be displayed.  Usually numeric.  
要显示的点的坐标。一般的数字。


参数:panel.groups
The panel function to be used for each subgroup of points.  Defaults to panel.xyplot.  To be able to distinguish between different levels of the originating group inside panel.groups, it will be supplied two special arguments called group.number and group.value which will hold the numeric code and factor level corresponding to the current level of groups.  No special care needs to be taken when writing a panel.groups function if this feature is not used.  
面板功能,可用于每个点群。 panel.xyplot默认。为了能够区分不同层次的发起组内panel.groups,它会提供两个特殊的参数,称为group.number和group.value将持有的数字代码和相应的因子水平groups目前的水平。写panel.groups函数,如果不使用此功能时,需要采取任何特殊照顾。


参数:subscripts
An integer vector of subscripts giving indices of the x and y values in the original data source.  See the corresponding entry in xyplot for details.  
一个下标给x和y在原始数据源的值指标的整数向量。在xyplot详情请参阅相应的条目。


参数:groups
A grouping variable.  Different graphical parameters will be used to plot the subsets of observations given by each distinct value of groups. The default graphical parameters are obtained from the "superpose.symbol" and "superpose.line" settings using trellis.par.get wherever appropriate.  
分组变量。将使用不同的图形参数,绘制观察每个不同的值groups亚群。默认的图形参数,得到从"superpose.symbol"和"superpose.line"设置trellis.par.get在适当的地方。


参数:type
Usually a character vector specifying how each group should be drawn.  Formally, it is passed on to the panel.groups function, which must know what to do with it. By default, panel.groups is panel.xyplot, whose help page describes the admissible values.  The functions panel.superpose and panel.superpose.2 differ only in the default value of distribute.type, which controls the way the type argument is interpreted.  If distribute.type = FALSE, then the interpretation is the same as for panel.xyplot for each of the unique groups.  In other words, if type is a vector, all the individual components are honoured concurrently.  If distribute.type = TRUE, type is replicated to be as long as the number of unique values in groups, and one component used for the points corresponding to the each different group.  Even in this case, it is possible to request multiple types per group, specifying type as a list, each component being the desired type vector for the corresponding group.  If distribute.type = FALSE, any occurrence of "g" in type causes a grid to be drawn, and all such occurrences are removed before type is passed on to panel.groups.  
一般指定如何应提请各组字符向量。在形式上,它被传递到panel.groups功能,它必须知道用它做什么。默认情况下,panel.groups是的panel.xyplot,其帮助页面描述容许值。职能panel.superpose和panel.superpose.2只有在默认值distribute.type,这控制type参数被解释的方式不同。如果distribute.type = FALSE,然后解释作为panel.xyplot为每一个独特的群体相同。换句话说,如果type是一个向量,所有的各个组件很荣幸兼任。如果distribute.type = TRUE,type复制到作为groups独特的价值观,和一个组件,用于点对应到每一个不同的组。即使在这种情况下,它是可能的,要求每个组的多种类型,指定type作为一个列表,每个组件所需的type向量相应的组。如果distribute.type = FALSE,任何发生"g"type导致电网要绘制,所有此类事件发生之前type被传递到panel.groups删除。


参数:grid
Logical flag specifying whether a background reference grid should be drawn.  See panel.xyplot for details.  
逻辑标志,指定是否应制定一个背景参考网格。看到panel.xyplot详情。


参数:col
A vector color specification.  See Details.  
向量颜色规范。查看详细信息。


参数:col.line
A vector color specification.  See Details.  
向量颜色规范。查看详细信息。


参数:col.symbol
A vector color specification.  See Details.  
向量颜色规范。查看详细信息。


参数:pch
A vector plotting character specification.  See Details.  
一个矢量绘图字符规范。查看详细信息。


参数:cex
A vector size factor specification.  See Details.  
一个向量的大小因素的规范。查看详细信息。


参数:fill
A vector fill color specification.  See Details.  
一个向量填充颜色规范。查看详细信息。


参数:font, fontface, fontfamily
A vector color specification.  See Details.  
向量颜色规范。查看详细信息。


参数:lty
A vector color specification.  See Details.  
向量颜色规范。查看详细信息。


参数:lwd
A vector color specification.  See Details.  
向量颜色规范。查看详细信息。


参数:alpha
A vector alpha-transparency specification.  See Details.  
一个向量α-透明度,规范。查看详细信息。


参数:...
Extra arguments.  Passed down to panel.superpose from panel.superpose.2, and to panel.groups from panel.superpose.  
额外的参数。流传到panel.superposepanel.superpose.2,panel.groupspanel.superpose。


参数:distribute.type
logical controlling interpretation of the type argument.  
type参数的控制逻辑解释。


Details

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

panel.superpose divides up the x (and optionally y) variable(s) by the unique values of groups[subscripts], and plots each subset with different graphical parameters.  The graphical parameters (col.symbol, pch, etc.) are usually supplied as suitable atomic vectors, but can also be lists.  When panel.groups is called for the i-th level of groups, the corresponding element of each graphical parameter is passed to it.  In the list form, the individual components can themselves be vectors.
panel.superpose分x(和可选y)groups[subscripts],并绘制不同的图形参数的每个子集的唯一值的变量(S)。 (col.symbol,pch等)的图形参数通常提供合适的原子向量,但也可以是列表。当panel.groups的i个groups水平称为相应的元素,每个图形参数传递给它。在列表的形式,各个组件本身可以是向量。

The actual plot for each subgroup is created by the panel.groups function.  With the default panel.groups, the col argument is overridden by col.line and col.symbol for lines and points respectively, which default to the "superpose.line" and "superpose.symbol" settings. However, col will still be supplied as an argument to panel.groups functions that make use of it, with a default of "black".  The defaults of other graphical parameters are also taken from the "superpose.line" and "superpose.symbol" settings as appropriate.  The alpha parameter takes it default from the "superpose.line" setting.
为每个分组的实际图panel.groups函数创建的。与默认panel.groups,col参数是col.line覆盖col.symbol线和点,默认"superpose.line"和"superpose.symbol" 设置。然而,col仍将提供作为panel.groups功能,利用它默认"black"的参数。其他图形参数的默认值也采取了从"superpose.line"和"superpose.symbol"设置适当的。 alpha参数把它从"superpose.line"设置的默认。

panel.superpose and panel.superpose.2 differ essentially in how type is interpreted by default.  The default behaviour in panel.superpose is the opposite of that in S, which is the same as that of panel.superpose.2.
panel.superpose和panel.superpose.2如何type默认解释在本质上不同。的的行为默认panel.superpose“S,这是相同的panel.superpose.2在对面。

panel.superpose.plain is the same as panel.superpose, except that the default settings for the style arguments are the same for all groups and are taken from the default plot style. It is used in xyplot.ts.
panel.superpose.plain是panel.superpose一样,除了样式参数的默认设置是各组相同,并采取从默认的打印样式。它是用来在xyplot.ts。


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



Deepayan Sarkar <a href="mailtoeepayan.Sarkar@R-project.org">Deepayan.Sarkar@R-project.org</a>
(<code>panel.superpose.2</code> originally contributed by Neil Klepeis)




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

Different functions when used as panel.groups gives different types of plots, for example panel.xyplot, panel.dotplot and panel.average (This can be used to produce interaction plots).
不同时panel.groups使用功能,给不同类型的图,例如panel.xyplot,panel.dotplot和panel.average(这可以用来产生交互图)。

See Lattice for an overview of the package, and xyplot for common arguments (in particular, the discussion of the extended formula interface and the groups argument).
看到Lattice包的概述,并xyplot共同参数(尤其是讨论和扩展公式界面groups参数)。

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-1-23 09:11 , Processed in 0.032881 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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