📄 plot.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Visualize Term-Document Matrix</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="../../R.css">
</head><body>
<table width="100%" summary="page for plot {tm}"><tr><td>plot {tm}</td><td align="right">R Documentation</td></tr></table>
<h2>Visualize Term-Document Matrix</h2>
<h3>Description</h3>
<p>
Visualize correlations between terms of a term-document matrix.
</p>
<h3>Usage</h3>
<pre>
## S3 method for class 'TermDocMatrix':
plot(x,
terms = sample(colnames(x), 20),
corThreshold = 0.7,
weighting = FALSE,
attrs = list(graph = list(rankdir = "BT"),
node = list(shape = "rectangle",
fixedsize = FALSE)),
...)
</pre>
<h3>Arguments</h3>
<table summary="R argblock">
<tr valign="top"><td><code>x</code></td>
<td>
an <font face="Courier New,Courier" color="#666666"><b>R</b></font> object inheriting from S4 class
<code><a href="TermDocMatrix.html">TermDocMatrix</a></code>.</td></tr>
<tr valign="top"><td><code>terms</code></td>
<td>
Terms to be plotted. Defaults to 20 randomly chosen terms
of the term-document matrix.</td></tr>
<tr valign="top"><td><code>corThreshold</code></td>
<td>
Do not plot correlations below this
threshold. Defaults to <code>0.7</code>.</td></tr>
<tr valign="top"><td><code>weighting</code></td>
<td>
Define whether the line width corresponds to the
correlation.</td></tr>
<tr valign="top"><td><code>attrs</code></td>
<td>
argument passed to the plot method for class
<code><a href="../../graph/html/graphNEL-class.html">graphNEL</a></code>.</td></tr>
<tr valign="top"><td><code>...</code></td>
<td>
Other arguments passed to the
<code><a href="../../graph/html/graphNEL-class.html">graphNEL</a></code> plot method.</td></tr>
</table>
<h3>Details</h3>
<p>
Visualization requires that package <span class="pkg">Rgraphviz</span> is available.
</p>
<h3>Examples</h3>
<pre>
if (require("Rgraphviz")) {
data(crude)
tdm <- TermDocMatrix(crude)
plot(tdm, terms = colnames(tdm)[1:20])
set.seed(1234)
plot(tdm, corThreshold = 0.2, weighting = TRUE)
}
</pre>
<hr><div align="center">[Package <em>tm</em> version 0.3 <a href="00Index.html">Index]</a></div>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -