D3WordCloud: D3 Word Cloud

Description Usage Arguments Author(s) References Examples

View source: R/D3.R

Description

Creates a html file containing json data and a D3.js Word cloud. It works with the jsonWordCloud function

Usage

1
D3WordCloud(JSON, file_out)

Arguments

JSON

A json object

file_out

the location and name for the output html file

Author(s)

James Thomson

References

https://github.com/jasondavies/d3-cloud

Examples

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")

jamesthomson/R2D3 documentation built on May 18, 2019, 11:21 a.m.