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

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

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

                                        Display a data frame of annotation information
                                         注释信息显示的数据框

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

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

Displays a data frame of both factor and numerical variables in parallel panels. Factors levels are indicated by black rectangles, using dummy variables for more than two levels. Numerical variables are shown as simple index plots with an optional loess smoother. Panels can be arranged horizontally or vertically, and different groups of subjects can be indicated through different background colors.
显示两个平行板的因素和数值变量的数据框。因素水平是由黑色的长方形表示,使用超过两个级别的虚拟变量。数值变量与一个可选的黄土平滑的简单指数图所示。板可以水平或垂直排列,并可以通过不同的背景颜色表示不同科目组。


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


picketPlot(x, grp = NULL, grpcol, grplabel = NULL, horizontal = TRUE, asIs = FALSE, control = list())



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

参数:x
usually a data frame, which is passed to convAnnData to be converted to a numerical matrix with dummy coding for the factor levels. Alternatively, such a numerical matrix can be constructed manually and passed in as x, see argument asIs
通常一个数据框,这是传递给convAnnData要转换因子水平的假人编码数值矩阵。另外,这样一个数字矩阵可以手动构造和x通过,见参数asIs


参数:grp
an optional vector of cluster memberships, in the same order as the rows of x
可选的聚类成员的向量,在作为x行的顺序相同


参数:grpcol
an optional vector of background colors for the clusters specified in grp
grp指定聚类的背景颜色可选向量


参数:grplabel
an optional vector of names for the clusters specified in grp
可选的名字向量grp指定的聚类


参数:horizontal
logical value whether to plot variables horizontally (default) or vertically
逻辑值是否绘制变量水平(默认)或垂直


参数:asIs
a logical value indicating whether x should be passed to convAnnData for pre-processing or not. Defaults to FALSE.
一个逻辑值,指明是否x应通过前处理或不convAnnData。 FALSE默认。


参数:control
a list of control parameters that determines the appearance of the plot   
决定图的外观的控制参数列表

boxw is the relative length of the short side of a box marking (width for a horizontal plot). Default is 1.  
boxw是相对的标记框短边长度(水平图的宽度)。默认为1。

boxh is the relative length of the long side of a box marking (default: 4)  
boxh是一个盒子的长边标记的相对长度(默认值:4)

hbuff is the relative distance between two box markings for the same variable (horizontal buffer for a horizontal plot). Default is 0.1  
hbuff是相同的变量(横向水平图的缓冲区)两个框标记之间的相对距离。默认为0.1。

vbuff is the relative distance between two box markings for the same subject, but different variables (default: 0.1)  
vbuff是同一主题的两个框标记之间的相对距离,但不同的变量(默认值:0.1)

span is the span argument for the loess smoother. Default is 1/3; setting this to zero switches off smoothing.  
span是跨度黄土平滑参数。默认值是1/3;设置零开关关闭平滑。

degree is the degree of loess smoothing. Default is 1; setting this to zero switches off smoothing  
degree是黄土平滑的程度。默认值为1;设置零开关关闭平滑

cex.label is the expansion factor for plotting cluster labels  
cex.label是绘制聚类标签的膨胀系数

numfac is the expansion factor indicating how much higher (for a horizontal plot) or wider (for a vertical plot) panels with numerical variables are than panels for factor variables.  
numfac是膨胀系数的数值变量的面板比因素变量的面板是多少更高水平图或更大的(垂直图)。

nacol is the color for box markings indicating missing values (default: gray(0.85))  
nacol表示遗漏值的方块标记的颜色(默认是:gray(0.85))


Details

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

Missing values are indicated by a box marking in nacol for factor values.
遗漏值表示由一个因子值在nacol标记框。


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

Depending on data and arguments, the value of the last axis function call. Irrelevant, as this function is called for its side effect of producing a plot.
根据数据和参数,最后axis函数调用的值。无关,此功能称为其生产的图副作用。


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

annHeatmap2, convAnnData, par
annHeatmap2,convAnnData,par


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


    ## Standard call[#标准呼叫]
    data(mtcars)
    picketPlot(mtcars)
   
    ## Pre-process the data for display[#前处理显示数据]
    mm = convAnnData(mtcars, inclRef=FALSE)
    picketPlot(mm, asIs=TRUE)
   
    ## Higher panels for continous traits[高等教育连续性状#板]
    picketPlot(mm, asIs=TRUE, control=list(numfac=3))

    ## With clusters[#与聚类]
    picketPlot(mtcars, grp = rep(1:2, c(16, 16)), grpcol = c("pink","lightblue"), grplabel=c("Cluster 1", "Cluster 2"))

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-6 06:50 , Processed in 0.026374 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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