SixiangHu / circleD3

D3 Plot for R

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

title author date output
README
Sixiang Hu
30 October 2015
html_document

This is a R package that visulises dataset or models using d3 javascript library.

Currently, the following d3 plots have been implemented, and more to add in:

This package is based on htmlwidgets package, hence can be used in Shiny app.

It utilises d3-tip javascript library for tooltip.

library(circleD3)

data <- list(id =1,
                 name = "flare",
                 children = list(
                   list(
                     id=2,
                     name="analytics",
                     size=100
                   ),
                   list(
                     id=3,
                     name="AgglomerativeCluster",
                     children = list(
                       list(
                         id=4,
                          name="MergeEdge",
                         children =list(
                           list(id=6,
                                name="AAA",
                                size=100),
                           list(id=7,
                                name="BBB",
                                size=150),
                           list(id=8,
                                name="CCC",
                                size=100)
                         )
                         ),
                       list(
                         id=5,
                          name="CommunityStructure",
                          size=200
                         )
                     )
                   )
                   )
    )

circleD3(data)

parsetsD3(iris,list("Species","Sepal.Length","Sepal.Width"))

To install the package from github

devtools::install_github('SixiangHu/circleD3')

Thanks d3 and htmlwidgets for brilliant packages that this plot is built on.

About

D3 Plot for R

License:GNU General Public License v2.0


Languages

Language:JavaScript 87.6%Language:R 7.2%Language:CSS 5.3%