matrixImagePlot(fabia)
matrixImagePlot()所属R语言包:fabia
Plotting of a Matrix
绘制的矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
matrixImagePlot: R implementation of myImagePlot.
matrixImagePlot:R的myImagePlot实施。
用法----------Usage----------
matrixImagePlot(x,xLabels=NULL, yLabels=NULL, zlim=NULL, title=NULL)
参数----------Arguments----------
参数:x
the matrix.
矩阵。
参数:xLabels
vector of strings to label the columns (default "colnames(x)").
字符串矢量标记列(默认“colnames的(X)”)。
参数:yLabels
vector of strings to label the rows (default "rownames(x)").
矢量标记的行(默认“rownames的(X)”)的字符串。
参数:zlim
vector containing a low and high value to use for the color scale.
使用色阶低和高价值的向量。
参数:title
title of the plot.
图的标题。
Details
详情----------Details----------
Plotting a table of numbers as an image using R.
使用河的形象作为绘图的数字表
The color scale is based on the highest and lowest values in the matrix.
色阶是基于对矩阵中的最高和最低值。
The original R code has been obtained by http://www.phaget4.org/R/myImagePlot.R and then has been modified.
原来的R代码已获得由http://www.phaget4.org/R/myImagePlot.R和当时已被修改。
参考文献----------References----------
参见----------See Also----------
fabia, fabias, fabiap, fabi, fabiasp, mfsc, nmfdiv, nmfeu, nmfsc, plot, extractPlot, extractBic, plotBicluster, Factorization, projFuncPos, projFunc, estimateMode, makeFabiaData, makeFabiaDataBlocks, makeFabiaDataPos, makeFabiaDataBlocksPos, matrixImagePlot, summary, show, showSelected, fabiaDemo, fabiaVersion
fabia,fabias,fabiap,fabi,fabiasp,mfsc,nmfdiv,nmfeu,nmfsc,plot,extractPlot,extractBic,plotBicluster,Factorization,projFuncPos,projFunc,estimateMode ,makeFabiaData,makeFabiaDataBlocks,makeFabiaDataPos,makeFabiaDataBlocksPos,matrixImagePlot,summary,show,showSelected fabiaDemo,fabiaVersion
举例----------Examples----------
#---------------[---------------]
# TEST[试验]
#---------------[---------------]
dat <- makeFabiaDataBlocks(n = 100,l= 50,p = 3,f1 = 5,f2 = 5,
of1 = 5,of2 = 10,sd_noise = 3.0,sd_z_noise = 0.2,mean_z = 2.0,
sd_z = 1.0,sd_l_noise = 0.2,mean_l = 3.0,sd_l = 1.0)
X <- dat[[1]]
Y <- dat[[2]]
matrixImagePlot(Y)
x11()
matrixImagePlot(X)
## Not run: [#无法运行:]
#---------------[---------------]
# DEMO[演示]
#---------------[---------------]
dat <- makeFabiaDataBlocks(n = 1000,l= 100,p = 10,f1 = 5,f2 = 5,
of1 = 5,of2 = 10,sd_noise = 3.0,sd_z_noise = 0.2,mean_z = 2.0,
sd_z = 1.0,sd_l_noise = 0.2,mean_l = 3.0,sd_l = 1.0)
X <- dat[[1]]
Y <- dat[[2]]
X <- X- rowMeans(X)
XX <- (1/ncol(X))*tcrossprod(X)
dXX <- 1/sqrt(diag(XX)+0.001*as.vector(rep(1,nrow(X))))
X <- dXX*X
matrixImagePlot(X)
## End(Not run)[#结束(不运行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|