SparseM.image(SparseM)
SparseM.image()所属R语言包:SparseM
Image Plot for Sparse Matrices
稀疏矩阵的图像绘图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Display the pattern of non-zero entries of a matrix of class matrix.csr.
显示图案的矩阵的非零项的类matrix.csr。
用法----------Usage----------
## S4 method for signature 'matrix.csr'
image(x, col=c("white","gray"),
xlab="column", ylab="row", ...)
参数----------Arguments----------
参数:x
a matrix of class matrix.csr. </table>
的矩阵类matrix.csr。 </ TABLE>
参数:col
a list of colors such as that generated by rainbow. Defaults to c("white","gray")
所产生的rainbow的颜色,如一个列表。默认为c(“白”,“灰”)
参数:xlab,ylab
each a character string giving the labels for the x and y axis.
每一个字符的字符串,给出的x和y轴的标签。
参数:...
additional arguments.
其他参数。
Details
详细信息----------Details----------
The pattern of the non-zero entries of a sparse matrix is displayed. By default nonzero entries of the matrix appear
一个稀疏矩阵的非零项的图案被显示。默认情况下出现的矩阵的非零
参考文献----------References----------
SparseM: A Sparse Matrix Package for R,<br> http://www.econ.uiuc.edu/~roger/research
参见----------See Also----------
SparseM.ops, SparseM.solve, SparseM.ontology
SparseM.ops,SparseM.solve,SparseM.ontology
实例----------Examples----------
a <- rnorm(20*5)
A <- matrix(a,20,5)
A[row(A)>col(A)+4|row(A)<col(A)+3] <- 0
b <- rnorm(20*5)
B <- matrix(b,20,5)
B[row(A)>col(A)+2|row(A)<col(A)+2] <- 0
image(as.matrix.csr(A)%*%as.matrix.csr(t(B)))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|