Description Usage Arguments Author(s) References Examples
Creates a html file containing json data and a D3.js Word cloud. It works with the jsonWordCloud function
1 | D3WordCloud(JSON, file_out)
|
JSON |
A json object |
file_out |
the location and name for the output html file |
James Thomson
https://github.com/jasondavies/d3-cloud
1 2 3 4 | words=c("big", "data", "machine", "learning", "wordcloud", "R", "d3js", "algorithm", "analytics", "science", "API")
freq=c(50, 50, 30, 30, 100, 10, 10, 10, 5, 5, 5 )
json<-jsonWordCloud(words, freq)
D3WordCloud(json, file_out="word_cloud.html")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.