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

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

[复制链接]
发表于 2012-9-30 00:56:33 | 显示全部楼层 |阅读模式
coltable(SensoMineR)
coltable()所属R语言包:SensoMineR

                                        Color the cells of a data frame according to 4 threshold levels
                                         颜色的单元格的数据框,根据4个阈值电平

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

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

Return a colored display of a data frame according to 4 threshold levels.
返回一个根据4个阈值电平的数据框的彩色显示。


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


coltable(matrice, col.mat = matrice,
    nbrow = nrow(matrice), nbcol = ncol(matrice),
    level.lower = 0.05, col.lower = "mistyrose",
    level.upper = 1.96, col.upper = "lightblue",
    cex = 0,nbdec = 4, main.title = NULL, level.lower2 = -1e10,
    col.lower2 = "red", level.upper2 = 1e10,
    col.upper2 = "blue", novalue = FALSE)



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

参数:matrice
a data frame (or a matrix) with only quantitative variables
与只定量变量的数据框(或矩阵)


参数:col.mat
a data frame (or a matrix) from which the cells of the matrice data frame are colored; by default, col.mat=matrice
一个数据框(或矩阵)matrice数据框的单元是彩色的,默认情况下,col.mat=matrice


参数:nbrow
the number of rows to be displayed (by default, nrow(matrice))
要显示的行数(默认情况下,nrow(matrice))


参数:nbcol
the number of columns to be displayed (by default, ncol(matrice))
要显示的列数(默认情况下,ncol(matrice))


参数:level.lower
the threshold below which cells are colored in col.lower
的阈值低于单元着色col.lower的


参数:col.lower
the color used for level.lower
用于level.lower的颜色


参数:level.upper
the threshold above which cells are colored in col.upper
阈值以上单元着色col.upper的


参数:col.upper
the color used for level.upper
用于level.upper的颜色


参数:cex
cf. function par in the graphics package
比照。函数pargraphics包


参数:nbdec
the number of decimal places displayed
显示的小数位数


参数:main.title
title of the graph(s)
图形的标题()


参数:level.lower2
the threshold below which cells are colored in col.lower2; this level should be less than level.lower
的阈值以下的单元格着色在col.lower2;这个水平应小于level.lower中


参数:col.lower2
the color used for level.lower2
用于level.lower2的颜色


参数:level.upper2
the threshold above which cells are colored in col.upper2; this level should be greater than level.upper
阈值以上单元着色col.upper2;这个级别应大于level.upper的


参数:col.upper2
the color used for level.upper2
用于level.upper2的颜色


参数:novalue
boolean, if TRUE the values are not written
布尔值,如果为true,值不会被写入


Details

详细信息----------Details----------

This function is very useful especially when there are a lot of values to check.
这个功能是非常有用的,尤其是当有一个很大的值,以检查。


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



Fran莽ois Husson, S茅bastien L锚




实例----------Examples----------


## Example 1[#示例1]
data(chocolates)
resdecat<-decat(sensochoc, formul = "~Product+Panelist", firstvar = 5,
    graph = FALSE)
resaverage<-averagetable(sensochoc, formul = "~Product+Panelist",
    firstvar = 5)
resaverage.sort = resaverage[rownames(magicsort(resdecat$tabT)),
    colnames(magicsort(resdecat$tabT))]
coltable(resaverage.sort, magicsort(resdecat$tabT),
    level.lower = -1.96, level.upper = 1.96,
    main.title = "Average by chocolate")

## Example 3[#示例3]
## Not run: [#不运行:]
data(chocolates)
resperf<-paneliperf(sensochoc,
    formul = "~Product+Panelist+Productanelist",
    formul.j = "~Product", col.j = 1, firstvar = 5, lastvar = 12,
    synthesis = FALSE, graph = FALSE)
resperfprob<-magicsort(resperf$prob.ind, method = "median")
coltable(resperfprob, level.lower = 0.05, level.upper = 1,
    main.title = "-value of the F-test (by panelist)")

resperfr2<-magicsort(resperf$r2.ind, method = "median",
    ascending = FALSE)
coltable(resperfr2, level.lower = 0.00, level.upper = 0.85,
    main.title = "Adjusted R-square (by panelist)")

## End(Not run)[#(不执行)]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-19 17:30 , Processed in 0.027231 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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