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

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

[复制链接]
发表于 2012-2-16 19:51:01 | 显示全部楼层 |阅读模式
update.trellis(lattice)
update.trellis()所属R语言包:lattice

                                        Retrieve and Update Trellis Object
                                         网格检索和更新对象

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

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

Update method for objects of class "trellis", and a way to retrieve the last printed trellis object (that was saved).
更新的方法的"trellis",类对象的方式来检索最后打印的网格对象(保存)。


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


## S3 method for class 'trellis'
update(object,
       panel,
       aspect,
       as.table,
       between,
       key,
       auto.key,
       legend,
       layout,
       main,
       page,
       par.strip.text,
       prepanel,
       scales,
       skip,
       strip,
       strip.left,
       sub,
       xlab,
       ylab,
       xlab.top,
       ylab.right,
       xlim,
       ylim,
       xscale.components,
       yscale.components,
       axis,
       par.settings,
       plot.args,
       lattice.options,
       index.cond,
       perm.cond,
       ...)

## S3 method for class 'trellis'
t(x)

## S3 method for class 'trellis'
x[i, j, ..., drop = FALSE]

trellis.last.object(..., prefix)




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

参数:object, x
The object to be updated, of class "trellis".  
要更新的对象,类"trellis"。


参数:i, j
indices to be used.  Names are not currently allowed.  
要使用的指标。名称目前还没有允许。


参数:drop
logical, whether dimensions with only one level are to be dropped. Currently ignored, behaves as if it were FALSE.  
逻辑,是否只有一个级别的尺寸是被丢弃。目前被忽略的行为,如果它是FALSE。

arguments that will be used to update object. See details below.   
将用于更新object参数。详见下文。


参数:prefix
A character string acting as a prefix identifying the plot of a "trellis" object.  Only relevant when a particular page is occupied by more than one plot.  Defaults to the value appropriate for the last "trellis" object printed.  See trellis.focus.  
一个字符串作为确定图"trellis"对象的前缀。唯一相关的,当一个特定的页面是一个图占领。默认的价值在过去的"trellis"适当对象的打印。看到trellis.focus。


Details

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

All high level lattice functions such as xyplot produce an object of (S3) class "trellis", which is usually displayed by its print method. However, the object itself can be manipulated and modified to a large extent using the update method, and then re-displayed as needed.
所有高级别晶格的功能,如xyplot产生一个对象(三)类"trellis",这通常是显示其print方法。然而,可以操纵和对象本身,修改使用update方法在很大程度上,然后重新显示需要。

Most arguments to high level functions can also be supplied to the update method as well, with some exceptions. Generally speaking, anything that would needs to change the data within each panel is a no-no (this includes the formula, data, groups,     subscripts and subset). Everything else is technically game, though might not be implemented yet. If you find something missing that you wish to have, feel free to make a request.
大多数参数的高层次功能也可以提供给update方法为好,也有一些例外。一般来说,任何将需要更改每个小组内的数据是一个没有没有(包括formula, data, groups,     subscripts和subset)。一切在技术上是游戏,虽然可能不会被执行。如果你觉得缺了点什么,你想,随时提出请求。

Not all arguments accepted by a Lattice function are processed by update, but the ones listed above should work.  The purpose of these arguments are described in the help page for xyplot.  Any other argument is added to the list of arguments to be passed to the panel function. Because of their somewhat special nature, updates to objects produced by cloud and wireframe do not work very well yet.
并非所有的莱迪思函数接受的参数处理update,但上面列出的工作。这些参数的目的是在帮助页面描述xyplot。被添加到任何其他参数要传递给panel函数的参数列表。因为他们有些特殊的性质,更新cloud和wireframe不很好地工作尚未产生的对象。

The "[" method is a convenient shortcut for updating index.cond.  The t method is a convenient shortcut for updating perm.cond in the special (but frequent) case where there are exactly two conditioning variables, when it has the effect of switching ("transposing") their order.
"["方法是更新index.cond方便快捷。 t方法是更新方便快捷perm.cond特别但频繁的情况下,那里有整整两个条件变量,当它具有开关(移调)他们的订单的效果。

The print method for "trellis" objects optionally saves the object after printing it.  If this feature is enabled, trellis.last.object can retrieve it.  By default, the last object plotted is retrieved, but if multiple objects are plotted on the current page, then others can be retrieved using the appropriate prefix argument.  If trellis.last.object is called with arguments, these are used to update the retrieved object before returning it.
可选的"trellis"对象的打印方法打印出来后,保存该对象。如果启用此功能,trellis.last.object可以检索它。默认情况下,绘制的最后一个对象被检索,但如果当前页面上绘制多个对象,那么其他人可以使用适当的prefix参数检索。如果trellis.last.object参数调用,这些用于更新,然后返回它的检索对象。


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

An object of class trellis, by default plotted by print.trellis.  trellis.last.object returns NULL is no saved object is available.
类对象trellis,默认情况下,绘制print.trellis。 trellis.last.object返回NULL是没有保存的对象是可用的。


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


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



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

trellis.object, Lattice, xyplot
trellis.object,Lattice,xyplot


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


spots <- by(sunspots, gl(235, 12, labels = 1749:1983), mean)
old.options <- lattice.options(save.object = TRUE)
xyplot(spots ~ 1749:1983, xlab = "", type = "l",
       scales = list(x = list(alternating = 2)),
       main = "Average Yearly Sunspots")
update(trellis.last.object(), aspect = "xy")
trellis.last.object(xlab = "Year")
lattice.options(old.options)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-1-24 21:06 , Processed in 0.019392 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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