D3Tree: D3 Tree

Description Usage Arguments Author(s) References Examples

View source: R/D3.R

Description

Creates a html file containing json file and a D3.js Tree Map. The nested json needs values assigned to it in order for it to work

Usage

1
D3Tree(JSON, file_out)

Arguments

JSON

A json object

the

location and name for the output html file

Author(s)

James Thomson

References

Mike Bostock's lovely d3: http://d3js.org/

Examples

1
2
3
data(counties)
JSON<-jsonNestedData(structure=counties[,1:3], values=counties[,4], top_label="UK")
D3Tree(JSON, file_out="Tree.html")

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