⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 plot.html

📁 R-Project是一个开源的统计软件,专门有一个R语言,类似S语言,这个包里面就是一个R实现的文本挖掘(text mining简称tm)的包.里面有代码和样本数据.
💻 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 &lt;- 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 + -