Description Usage Arguments Value Examples
Plot a graph of terms.
1 2 3 4 5 6 7 8 | terms_graph(
dtm,
n = 100,
min_occ = 0,
interactive = base::interactive(),
vertex.label.cex = 1,
...
)
|
dtm |
A |
n |
The maximum number of terms to represent. |
min_occ |
The minimum number of occurrences for a term to be retained. |
interactive |
If |
vertex.label.cex |
The font size for vertex labels. It is interpreted as a multiplication factor of some device-dependent base font size. |
... |
Optional arguments passed to |
The ID of the plot returned by tkplot
if interactive=TRUE
,
or NULL
invisibly otherwise.
1 2 3 4 | file <- system.file("texts", "reut21578-factiva.xml", package="tm.plugin.factiva")
corpus <- import_corpus(file, "factiva", language="en")
dtm <- build_dtm(corpus)
terms_graph(dtm, 100, 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.