D3Sunburst: D3 Sunburst

Description Usage Arguments Author(s) References Examples

View source: R/D3.R

Description

Creates a html file containing json file and a D3.js Sunburst. Needs json data from the jsonSeqFreq function

Usage

1
D3Sunburst(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://bl.ocks.org/kerryrodden/7090426

Examples

1
2
3
4
5
6
7
data<-read.csv(file="https://gist.githubusercontent.com/kerryrodden/7090426/raw/8fce22c9e21711c757ee8a0df7dba5a42dea0d9c/visit-sequences.csv",
header = FALSE,  stringsAsFactors = FALSE
)
seq<-data[-13632,1]
freq<-data[-13632,2]
json<-jsonSeqFreq(seq, freq)
D3Sunburst(json, file_out="sunburst.html")

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