Description Usage Arguments Value References Examples
A port of Google Chart's word tree https://developers.google.com/chart/interactive/docs/gallery/wordtree.
1 |
text.var |
The text string variable. |
word |
A character string with the word to search for. |
grouping.var |
The grouping variable(s). Default |
ignore.case |
logical. If |
... |
ignored. |
Makes a .html file and returns the path invisibly.
https://developers.google.com/chart/interactive/docs/gallery/wordtree
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 | ## Not run:
library(dplyr)
word_tree(sam_i_am, word = 'I') %>%
plot()
word_tree(sam_i_am, word = 'do') %>%
plot()
word_tree(sam_i_am, word = 'not') %>%
plot()
with(presidential_debates_2012, word_tree(dialogue, word = 'I',
list(person, time))) %>%
plot()
with(presidential_debates_2012, word_tree(dialogue, word = 'america',
list(person, time), path = 'treemap.html')) %>%
plot()
with(presidential_debates_2012, word_tree(dialogue, word = 'He',
list(person, time), path = 'treemap.html')) %>%
plot()
with(presidential_debates_2012, word_tree(dialogue, word = 'we',
list(person, time), path = 'treemap.html')) %>%
plot(height = 1200)
with(presidential_debates_2012, word_tree(dialogue, word = 'our',
list(person, time), path = 'treemap.html')) %>%
plot(height = 1200)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.