charCloud | R Documentation |
this function creates a wordcloud based on a character string.
Optionally, a file with common words to be excluded can be
supplied. See tagcloud
for details on the cloud building.
charCloud(
txt,
exclude = NULL,
nwords = 180,
min.char.length = 5,
max.char.length = 30,
clrs = c("#8c510a", "#bf812d", "#35978f", "#01665e", "#7fbc41", "#4d9221"),
seed = 123,
wmin = NULL,
stat = FALSE,
sortby = c("freq, names"),
...
)
txt |
character string from which the cloud will be computed |
exclude |
optional path to a .txt file with words to be excluded from the cloud |
nwords |
the number of words to be plotted |
min.char.length |
minimum length of words to be included in the cloud |
max.char.length |
maximum length of words to be included in the cloud |
clrs |
vector of colors to be used for the word cloud |
seed |
seed to be used for the random word placement |
wmin |
see |
stat |
return statistics (words and frequencies) |
sortby |
if stat is TRUE, sort statistics by names or frequency |
... |
additional arguments passed to |
Tim Appelhans
tagcloud
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.