diff --git a/README.Rmd b/README.Rmd index 2c82e93..1c68585 100644 --- a/README.Rmd +++ b/README.Rmd @@ -45,7 +45,7 @@ browsable( ) ) -# or include directly in a taglist; I prefer this methode +# or include directly in a taglist; I prefer this method. browsable( tagList( h1("I have d3 version ", span(id="version")), diff --git a/README.md b/README.md index 2339538..9883c29 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ absolute latest use `devtools`. ) ) - # or include directly in a taglist; I prefer this methode + # or include directly in a taglist; I prefer this method. browsable( tagList( h1("I have d3 version ", span(id="version")), diff --git a/docs/index.html b/docs/index.html index d05d990..ba61b7c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -92,7 +92,7 @@

) ) -# or include directly in a taglist; I prefer this methode +# or include directly in a taglist; I prefer this method. browsable( tagList( h1("I have d3 version ", span(id="version")), diff --git a/docs/news/index.html b/docs/news/index.html index 4800b6e..ef04cea 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -88,6 +88,175 @@

Change log All releases

+
+

d3r 0.8.2

+ +
+
+

d3r 0.8.1

+ +
+
+

d3r 0.8.0

+ +
+
+

d3r 0.7.1

+ +
+
+

d3r 0.7.0

+ +
+
+

d3r 0.6.9

+
+

Updates

+ +
+
+
+

d3r 0.6.8

+
+

Updates

+ +
+
+
+

d3r 0.6.7

+
+

API Changes

+
    +
  • (BREAKING) d3_table weight column is now named value to be consistent with the newest d3-sankey plugin commit.

  • +
  • Use unpkg.com for online dependencies

  • +
+
+
+
+

d3r 0.6.6

+
+

Updates

+
    +
  • add d3_table() function to convert R table into list of a nodes data.frame and a links data.frame modelled after example +
  • +
+
+
+
+

d3r 0.6.5

+
+

Updates

+
    +
  • update d3v4 to 4.9.1 +
  • +
+
+
+
+

d3r 0.6.4

+
+

Bug Fix

+
    +
  • d3_nest would fail with certain hierarchies that had multiple NA level; fix only takes first na_child since non-first children will be duplicates (see commit)
  • +
+
+
+
+

d3r 0.6.3

+
+

Updates

+
    +
  • update d3v4 to 4.8.0 +
  • +
  • test with development dplyr +
  • +
+
+
+
+

d3r 0.6.2

+
+

Updates

+
    +
  • update d3v4 to 4.6.0 +
  • +
  • add d3_v8() convenience function to return V8 context with d3.js loaded
  • +
+
+
+
+

d3r 0.6.1

+
+

Updates

+
    +
  • update d3v4 to 4.4.4 +
  • +
+
+
+
+

d3r 0.6.0

+
+

Updates

+
    +
  • add colname to return value (see commit)

  • +
  • improve NA child promotion for deeply nested hierarchies

  • +
+
+
+

API Changes

+
    +
  • +(BREAKING) change id to name (see issue)
  • +
+
+
+
+

d3r 0.5.0

+
+

Updates

+ +
+
+

API Changes

+
    +
  • (non-breaking) add offline argument to d3_dep_v3 and d3_dep_v4
  • +
+
+
+
+

d3r 0.4.2

+ +
@@ -95,6 +264,23 @@

Change log All releases

Contents

diff --git a/docs/reference/d3_nest.html b/docs/reference/d3_nest.html index f4cf073..a1f0f06 100644 --- a/docs/reference/d3_nest.html +++ b/docs/reference/d3_nest.html @@ -126,13 +126,18 @@

Examp # devtools::install_github("timelyportfolio/d3r") library(d3r) -library(dplyr) - +library(dplyr)
#> Warning: package ‘dplyr’ was built under R version 3.4.4
#> +#> Attaching package: ‘dplyr’
#> The following object is masked from ‘package:testthat’: +#> +#> matches
#> The following objects are masked from ‘package:stats’: +#> +#> filter, lag
#> The following objects are masked from ‘package:base’: +#> +#> intersect, setdiff, setequal, union
titanic_df <- data.frame(Titanic) tit_tb <- titanic_df %>% select(Class,Age,Survived,Sex,Freq) %>% - d3_nest(value_cols="Freq", root="titanic") - + d3_nest(value_cols="Freq", root="titanic")
#> Warning: package ‘bindrcpp’ was built under R version 3.4.4
tit_tb
#> {"children":[{"name":"1st","children":[{"name":"Child","children":[{"name":"No","children":[{"name":"Male","Freq":0,"colname":"Sex"},{"name":"Female","Freq":0,"colname":"Sex"}],"colname":"Survived"},{"name":"Yes","children":[{"name":"Male","Freq":5,"colname":"Sex"},{"name":"Female","Freq":1,"colname":"Sex"}],"colname":"Survived"}],"colname":"Age"},{"name":"Adult","children":[{"name":"No","children":[{"name":"Male","Freq":118,"colname":"Sex"},{"name":"Female","Freq":4,"colname":"Sex"}],"colname":"Survived"},{"name":"Yes","children":[{"name":"Male","Freq":57,"colname":"Sex"},{"name":"Female","Freq":140,"colname":"Sex"}],"colname":"Survived"}],"colname":"Age"}],"colname":"Class"},{"name":"2nd","children":[{"name":"Child","children":[{"name":"No","children":[{"name":"Male","Freq":0,"colname":"Sex"},{"name":"Female","Freq":0,"colname":"Sex"}],"colname":"Survived"},{"name":"Yes","children":[{"name":"Male","Freq":11,"colname":"Sex"},{"name":"Female","Freq":13,"colname":"Sex"}],"colname":"Survived"}],"colname":"Age"},{"name":"Adult","children":[{"name":"No","children":[{"name":"Male","Freq":154,"colname":"Sex"},{"name":"Female","Freq":13,"colname":"Sex"}],"colname":"Survived"},{"name":"Yes","children":[{"name":"Male","Freq":14,"colname":"Sex"},{"name":"Female","Freq":80,"colname":"Sex"}],"colname":"Survived"}],"colname":"Age"}],"colname":"Class"},{"name":"3rd","children":[{"name":"Child","children":[{"name":"No","children":[{"name":"Male","Freq":35,"colname":"Sex"},{"name":"Female","Freq":17,"colname":"Sex"}],"colname":"Survived"},{"name":"Yes","children":[{"name":"Male","Freq":13,"colname":"Sex"},{"name":"Female","Freq":14,"colname":"Sex"}],"colname":"Survived"}],"colname":"Age"},{"name":"Adult","children":[{"name":"No","children":[{"name":"Male","Freq":387,"colname":"Sex"},{"name":"Female","Freq":89,"colname":"Sex"}],"colname":"Survived"},{"name":"Yes","children":[{"name":"Male","Freq":75,"colname":"Sex"},{"name":"Female","Freq":76,"colname":"Sex"}],"colname":"Survived"}],"colname":"Age"}],"colname":"Class"},{"name":"Crew","children":[{"name":"Child","children":[{"name":"No","children":[{"name":"Male","Freq":0,"colname":"Sex"},{"name":"Female","Freq":0,"colname":"Sex"}],"colname":"Survived"},{"name":"Yes","children":[{"name":"Male","Freq":0,"colname":"Sex"},{"name":"Female","Freq":0,"colname":"Sex"}],"colname":"Survived"}],"colname":"Age"},{"name":"Adult","children":[{"name":"No","children":[{"name":"Male","Freq":670,"colname":"Sex"},{"name":"Female","Freq":3,"colname":"Sex"}],"colname":"Survived"},{"name":"Yes","children":[{"name":"Male","Freq":192,"colname":"Sex"},{"name":"Female","Freq":20,"colname":"Sex"}],"colname":"Survived"}],"colname":"Age"}],"colname":"Class"}],"name":"titanic"}
# see as tibble titanic_df %>%