convAnnData(Heatplus)
convAnnData()所属R语言包:Heatplus
Converting data frames for display as annotation
转换数据框显示为注释
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Converts a data frames for display as annotation in a heatmap. This is mostly intended as an internal function, but might be useful for finetuning an annotation data frame manually.
转换注释在热图中显示的数据框。这主要是打算作为一个内部函数,但可能是有用的注释数据框手动调整能力评价很高。
用法----------Usage----------
convAnnData(x, nval.fac = 3, inclRef = TRUE, asIs = FALSE)
参数----------Arguments----------
参数:x
the data frame to be converted
要转换的数据框
参数:nval.fac
lower limit for unique values in numerical variables
下限为数值变量的独特价值
参数:inclRef
logical value indicating whether to include the reference level among the dummy variables for factors
逻辑值,指明是否包括哑变量因素之间的参考水平
参数:asIs
logical value indicating whether to perform a conversion; if TRUE, the input x is simply returned, provided it is a numerical matrix (otherwise, the function stops with an error message)
逻辑值指示是否执行转换; TRUE如果,输入x简单地返回,它是一个数值矩阵(否则,函数停止错误消息)
Details
详情----------Details----------
Logical variables are converted to factors. So are numerical variables with less than nval.fac unique values.
逻辑变量转换为因素。所以nval.fac唯一值的数值变量。
值----------Value----------
convAnnData returns the converted data frame, which is a numerical matrix
convAnnData返回转换后的数据框,这是一个数值矩阵
参见----------See Also----------
annHeatmap2
annHeatmap2
举例----------Examples----------
data(mtcars)
summary(mtcars)
summary(convAnnData(mtcars))
summary(convAnnData(mtcars, nval.fac=2))
summary(convAnnData(mtcars, nval.fac=2, inclRef=FALSE))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|