display(spam)
display()所属R语言包:spam
Graphially Represent the Nonzero Entries
Graphially代表非零元素
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The function represents the nonzero entries in a simple bicolor plot.
函数表示一个简单的双色图中非零元素。
用法----------Usage----------
display(x, ...)
参数----------Arguments----------
参数:x
matrix of class spam or spam.chol.NgPeyton.
矩阵类spam或spam.chol.NgPeyton。
参数:...
any other arguments passed to image.default/plot.
任何其他参数传递给image.default/plot。
Details
详细信息----------Details----------
spam.getOption("imagesize") determines if the sparse matrix is coerced into a matrix and the plotted with image.default or if the matrix is simply represented as a scatterplot with pch=".". The points are scaled according to cex*spam.getOption("cex")/(nrow + ncol). For some devices or for non-square matrices, cex needs probably some adjustment.
spam.getOption("imagesize")确定是否被强制为一个矩阵,稀疏矩阵的策划与image.default如果矩阵是简单地表示的散点图与pch="."。点缩放根据cex*spam.getOption("cex")/(nrow + ncol)。对于一些设备,或者用于非方阵,cex需要可能进行一些调整。
(作者)----------Author(s)----------
Reinhard Furrer
参见----------See Also----------
image, spam.options
image,spam.options
实例----------Examples----------
set.seed(13)
nz <- 8
ln <- nz
smat <- spam(0, ln, ln)
smat[cbind(sample(ln, nz), sample(ln, nz))] <- 1:nz
par(mfcol=c(1,2), pty='s')
spam.options(imagesize = 1000)
display(smat)
spam.options(imagesize = 10)
display(smat)
# very large but very sparse matrix[非常大,但非常稀疏矩阵]
nz <- 128
ln <- nz^2
smat <- spam(0, ln, ln)
smat[cbind(sample(ln, nz), sample(ln, nz))] <- 1:nz
par(mfcol=c(1, 1), pty='s')
display(smat, cex = 100)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|