wc: Produce wordcloud

Description Usage Arguments Examples

View source: R/wordcloud.R

Description

Produce wordcloud

Usage

1
2
3
4
wc(words, weights, word_buffer = 0, lower_cex = 0.5, upper_cex = 2,
  buffer = 0.2, lo_col = "black", hi_col = "black", spiral_n = 8,
  spiral_res = 500, spiral_a0 = 0, spiral_a1 = 0.4, seed = NULL,
  vert = TRUE, plot_spirals = FALSE, markup = FALSE)

Arguments

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

Examples

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)

dickie-roper/cloudr documentation built on Nov. 4, 2019, 10:31 a.m.