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

R语言 prada包 plotPlate()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-26 11:20:02 | 显示全部楼层 |阅读模式
plotPlate(prada)
plotPlate()所属R语言包:prada

                                        Plot a well statistic for microtiter plates.
                                         绘制微孔板以及统计。

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

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

Plot a well statistic in false color representation or using a self-defined grid plotting function. The plot is supposed to resemble the physical geometry of a microtitre
绘制颜色虚假陈述或使用自定义的网格绘图功能以及统计。图应该像一个微量的物理几何


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


plotPlate(x,nrow = 8, ncol = 12, col=c("red", "blue"),
ind = 1ncol*nrow), xrange=function(y) range(y, na.rm=TRUE), na.action = "zero",
main, char, desc = character(2), add=FALSE, gridFun="default",
funArgs=NULL,...)



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

参数:x
Numeric vector of length ncol*nrow or matrix with ncol*nrow rows (except if argument ind is specified). If of class matrix, the use of argument gridFun is expected.
数字长度ncol*nrowncol*nrow行(如果参数ind指定的除外),矩阵向量。如果类matrix,使用参数gridFun预计。


参数:nrow
Numeric of length 1. The number of rows of the plate.
长度为1的数字。板的行数。


参数:ncol
Numeric of length 1. The number of columns of the plate.
长度为1的数字。板列数。


参数:col
Character vector. Usually the names of two or three colors between which the color map is interpolated, using the function colorRampPalette.
特征向量。通常是两种或三种颜色之间的彩色图的名称插,使用功能colorRampPalette。


参数:ind
Optional integer vector of equal length as x. It indicates the position of the respective value of x on the plate. Can be used to adress the problem of missing values. Each well that is not allocated a value of x by ind will not be plotted.
可选的整数向量x长度相等。它表示x的盘子上各自的价值立场。可用于地址缺失值的问题。每口井,未分配的价值x的ind不会被绘制。


参数:xrange
Numeric vector of length two giving thwe range of x that is mapped into the color scale. Alternatively, this can be a function which takes the values of x as input and creates such a vector.
长度的数字矢量给thwe范围x这是映射到色阶。另外,这可以是一个函数x值作为输入,并创建这样一个向量。


参数:na.action
Character. One of "zero" "omit" or "xout". How should the wells for which x is NA be treated? For "zero", they are plotted as if the value were 0.  For "omit", they are omitted. For "xout", they are crossed out. When x is a matrix, na.action is only applied to rows containing nothing but NAs. Further special treatment of NA values in matrices need to be implemented in gridFun.
字符。一个"zero""omit"或"xout"。应该如何治疗口井为x的是NA? ,"zero"他们正在图如果值分别为0。 "omit",他们被省略。 "xout",他们划掉。当x是一个矩阵,na.action仅适用于行包含只不过定居。在矩阵进一步的NA值的特殊待遇,必须在gridFun实施。


参数:main
Character of length 1. Plot title.
字符长度为1。图称号。


参数:char
An optional character vector of equal length as x (except if argument ind is specified) to be used for well annotation. Each element of the vector may contain a string to be superimposed on the respective well or NA for no plotting.
x(如果指定参数ind除外)以及注解使用一个可选的特征向量长度相等。向量的每个元素可以包含一个字符串叠加各自的水井或NA没有图。


参数:desc
Character of length 2. Legend for the two extremes of the colorbar, e.g. 'act' and 'inh'.  
字符长度为2。传说中的彩条的两个极端,例如法和INH。


参数:add
Logical. If TRUE add plate plot to current plot. May be used when plotting in grid layout panels.  
逻辑。如果TRUE添加板块目前积图。可用于在绘制网格布局面板。


参数:gridFun
Character. The name of the plotting function to create individual graphs for each well. See functions .drawCircle and .drawPie </table>
字符。创建每口井的个别图形的绘图功能的名称。功能.drawCircle和.drawPie</ TABLE>


参数:funArgs
Dataframe with argument values to be passed to gridCall. For each argument specified in gridCall there must be one column with the argument name as colname and the argument values for every well.
与参数值被传递到gridCall的dataframe。每个参数对于在gridCall指定COLNAME和每口井的参数值与参数的名称必须有一个列。


参数:...
Further graphical parameters that can be used to control the output of plotPlate.     
此外,可以用来控制输出plotPlate图形参数。

cex.main:expansion factor for title.  
cex.main:标题为扩大的因素。

cex.lab:expansion factor for label.  
cex.lab:标签的扩展因素。

cex.char:expansion factor for well annotation.  
cex.char:扩张以及注释的因素。

cex.legend:expansion factor for well legend labels.  
cex.legend:膨胀系数以及图例标签。

cex.desc:expansion factor for well legend description.     
cex.desc以及图例说明:膨胀系数。


Details

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

You may use this function either to create plots showing a single-value per well statistic for microtiter plates, or you can use a self-made plotting function using a combination of any valid grid commands to produce arbitrary plots in a plate array format. These plots may also show multifactorial data. Self-defined plotting functions need to have data as first argument. plotPlate passes all data values for the respective well to the plotting function. Any further arguments may be passed on using argument funArgs. See .drawCircle and .drawPie for examples of valid plotting functions and the vignette for detailed information.  Note that using funCall overrides some of the default functionalities, e.g. plotting of legends and alters the treatment of NA values.
您可以使用此功能创建酶标板每单值以及统计图显示,或者你可以使用自制的绘图功能使用任何有效的网格命令的组合,以产生任意图板阵列格式。这些图也可以显示多种因素的数据。自定义的绘图功能需要有data作为第一个参数。 plotPlate通过各自的所有数据值以及绘图功能。任何进一步的参数可以通过使用参数funArgs。看到.drawCircle和.drawPie有效的绘图功能的例子和详细信息的小插曲。请注意,使用funCall覆盖一些默认的功能,例如图的传说和改变治疗的NA值。

Argument ind allows the user to indicate the position (well number) for each element of vector x on the plate. This can be used either to change the order in which elements of x are to be plotted or to deal with the problem of missing data for some of the wells on a plate.
参数ind允许用户表示向量的每个元素的位置(一批)x盘上。这可以使用改变x元素要绘制的顺序,或处理一些井在盘子上的数据丢失的问题。

To further increase the amount of information of the platePlot one may decorate wells with short annotations using argument char. Each element of char != NA will be superimposed on the respective well (see examples).
为了进一步提高信息的platePlot一量可能装点短注释,使用参数char井。每个元素char!= NA将在各自的良好叠加(见例子)。


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

The function produces a plot in the active graphics device.  
该函数产生一个积极的图形设备的图。

It returns a list withfour elements. The element which is a vector with the indices of those elements in x that were plotted (see argument na.action). The element coord is a length(which) by 4 matrix in which each row specifies the corners of a rectangle that contains a well. It is intended to be used as an argument to a subsequent call to imageMap. Elements width and height may be used to open a graphic devices that can hold the plate
它返回列表withfour元素。的元素which是这些元素的指数在矢量x绘制(见参数na.action)。元素coord是length(which)由4矩阵在每一行指定包含一个矩形的角落。它的目的是作为后续调用imageMap参数。元素width和height可以用来打开一个图形设备,可容纳板


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


Florian Hahne, Wolfgang Huber <a href="http://www.ebi.ac.uk/huber">http://www.ebi.ac.uk/huber</a>



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

imageMap
imageMap


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


plotPlate(runif(96), main="example 1", col=c("#0000e0", "#e00000"), desc=c("act", "inh"))[0000e0“,”#e00000“),DESC = C(”法“,”INH“))]
plotPlate(runif(384), nrow=16, ncol=24, main="example 2", col=c("#0000e0", "white", "#e00000"))[0000e0“,”白“,”#e00000“))]
plotPlate(runif(48), main="example 3", col=c("#0000e0", "#e00000"), ind=c(1:24, 73:96))[0000e0“,”#e00000“),IND = C(1:24,73:96))]
x <- runif(96)
x[sample(96, 10)] <- NA
plotPlate(x, main="example 4", col=c("#0000e0", "#e00000"),[0000e0“,”#e00000“),]
char=c(rep(NA, 72), LETTERS[1:24]), na.action="xout")
plotPlate(runif(96, min=0.1, max=0.5), gridFun=".drawCircle")
plotPlate(matrix(runif(288), ncol=3), gridFun=".drawPie",
funArgs=as.data.frame(matrix(2:4, ncol=3, nrow=96, byrow=TRUE)))


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-1 06:49 , Processed in 0.031510 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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