Description Usage Arguments Examples
Produce wordcloud
1 2 3 4 |
words |
Character vector of words to use in word cloud |
weights |
The weigths associated with each word - will be normalised and passed as the text cex |
word_buffer |
A buffer to be added to each word. Default is 0. Negative values will make words plot over eachother |
lower_cex |
Lower cex for lowest word weight |
upper_cex |
Upper cex for highest word weight |
buffer |
Buffer for plot region x dimension (npc units) |
lo_col |
Colour for lowest word weight (a continuos colour scale from lo to hi will be constructed) |
hi_col |
Colour for highest word weight (a continuos colour scale from lo to hi will be constructed) |
spiral_n |
Number of full rotations in spiral |
spiral_res |
Resilution of spirals |
spiral_a0 |
Spiral start relative to x coordinate |
spiral_a1 |
Spiral end |
seed |
Seed for reproducabile plots |
vert |
Logical. Use vertical words in wordcloud |
plot_spirals |
Logical. Choose whether to plott he spirals for each point on the page |
markup |
Logical. Add word borders, x-y coordinates and page boundaries/buffer zone |
1 2 3 4 5 6 7 8 | wc(obama$word[1:100],
obama$count[1:100],
lower_cex = 1,
upper_cex = 3.5,
spiral_n = 10,
spiral_res = 500,
lo_col = "grey75",
seed = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.