Description Usage Arguments Value Author(s) Examples
A drop-in replacement for wordcloud() to generate javascript wordcloud.
1 2 3 |
words |
character vector of words to be plotted |
freq |
numeric vector of word frequency |
scale |
A vector of length 2 indicating the range of size of words as a ratio of width |
cols |
character vector of either hex RGB codes or color names in color() |
shape |
Shape of wordcloud, "circle", "triangle", "star" |
rot_per |
proportion words with rotation |
dir |
character, path to export the wordcloud, NULL is temp. dir |
width |
numeric, width of the wordcloud on canvas |
height |
numeric, height of the wordcloud on canvas |
auto_size |
logical, to adjust the size automatically according to scale and width |
bgcolor |
a hex RGB code or color name for background color |
Nothing
Chung-hong Chan <chainsawtiney@gmail.com>, with wordcloud2.js written by timedream and TaffyDB.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.