plot(tm)
plot()所属R语言包:tm
Visualize a Term-Document Matrix
可视化的定期文件矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Visualize correlations between terms of a term-document matrix.
可视化方面的术语文档矩阵之间的相关性。
用法----------Usage----------
## S3 method for class 'TermDocumentMatrix'
plot(x,
terms = sample(Terms(x), 20),
corThreshold = 0.7,
weighting = FALSE,
attrs = list(graph = list(rankdir = "BT"),
node = list(shape = "rectangle",
fixedsize = FALSE)),
...)
----------Arguments----------
参数:x
A term-document matrix.
一个术语文档矩阵。
参数:terms
Terms to be plotted. Defaults to 20 randomly chosen terms of the term-document matrix.
要绘制的条款。默认为20个随机选择的这个词 - 文档矩阵。
参数:corThreshold
Do not plot correlations below this threshold. Defaults to 0.7.
不积低于这个阈值的相关性。默认为0.7的。
参数:weighting
Define whether the line width corresponds to the correlation.
定义是否对应的相关的线宽度。
参数:attrs
Argument passed to the plot method for class graphNEL.
参数传递的图方法,为类graphNEL。
参数:...
Other arguments passed to the graphNEL plot method.
其他参数传递graphNEL图法。
Details
详细信息----------Details----------
Visualization requires that package Rgraphviz is available.
可视化要求,包Rgraphviz是。
实例----------Examples----------
## Not run: [#不运行:]
data(crude)
tdm <- TermDocumentMatrix(crude,
control = list(removePunctuation = TRUE,
removeNumbers = TRUE,
stopwords = TRUE))
plot(tdm, corThreshold = 0.2, weighting = TRUE)
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|