Skip to content
forked from d3treeR/d3treeR

R htmlwidget for d3.js treemaps

License

Notifications You must be signed in to change notification settings

DDT-scrip/d3treeR

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

d3treeR

d3treeR is an R htmlwidget for d3.js treemaps. It is designed to integrate seamlessly with the R treemap package or work with traditional nested JSON hierarchies.

Please see the Building Widgets post Week 29 | d3treeR v2 for a discussion.

Quick Examples

Using treemap

library(treemap)
library(d3treeR)

# example 1 from ?treemap
data(GNI2010)
d3tree2(
   treemap(
     GNI2010
     ,index=c("continent", "iso3")
     ,vSize="population"
     ,vColor="GNI"
     ,type="value"
   )
   , rootname = "World"
)

Using JSON

library(d3treeR)
d3tree2(
  "http://bl.ocks.org/mbostock/raw/1093025/flare.json"
  , celltext = "name"
)

About

R htmlwidget for d3.js treemaps

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • R 88.1%
  • CSS 11.9%