Description Usage Arguments Author(s)
View source: R/textplot_wordcloud.R
This function implements wordcloud without dependencies. Code is adopted from
wordcloud::wordcloud()
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
x |
a dfm or quanteda.textstats::textstat_keyness object |
min_size |
size of the smallest word |
max_size |
size of the largest word |
min_count |
words with frequency below min_count will not be plotted |
max_words |
maximum number of words to be plotted. The least frequent
terms dropped. The maximum frequency will be split evenly across
categories when |
color |
colour of words from least to most frequent |
font |
font-family of words and labels. Use default font if |
adjust |
adjust sizes of words by a constant. Useful for non-English words for which R fails to obtain correct sizes. |
rotation |
proportion of words with 90 degree rotation |
random_order |
plot words in random order. If |
random_color |
choose colours randomly from the colours. If |
ordered_color |
if |
labelcolor |
colour of group labels. Only used when |
labelsize |
size of group labels. Only used when |
labeloffset |
position of group labels. Only used when
|
fixed_aspect |
logical; if |
scale |
deprecated argument |
min.freq |
deprecated argument |
max.words |
deprecated argument |
random.order |
deprecated argument |
random.color |
deprecated argument |
rot.per |
deprecated argument |
ordered.colors |
deprecated argument |
use.r.layout |
deprecated argument |
fixed.asp |
deprecated argument |
... |
additional parameters. Only used to make it compatible with wordcloud |
Kohei Watanabe, building on code from Ian Fellows's wordcloud package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.