rstudio / r2d3

R Interface to D3 Visualizations
https://rstudio.github.io/r2d3
Other
517 stars 103 forks source link

Are there more r2d3 script examples instead of d3.js example #62

Open yxiao315 opened 5 years ago

yxiao315 commented 5 years ago

for the new beginner who is not familiar with d3.js, are there more r2d3 script examples like the basic chart as line, bar, area. etc. Since I still have difficulty to translate d3.js to r2d3 script which can be used in R

javierluraschi commented 5 years ago

We have a gallery with about 16 examples:

https://rstudio.github.io/r2d3/articles/gallery.html

Would those examples help?

The r2d3 examples got translated from D3's gallery:

https://github.com/d3/d3/wiki/Gallery

So for instance, bubble looks like the following in D3:

https://observablehq.com/@d3/bubble-chart

and as follows in r2d3:

https://rstudio.github.io/r2d3/articles/gallery/bubbles/

shotchki commented 5 years ago

Lots of the gallery examples just read in .JSON files; showing how would you use R data in these examples (e.g. from a data frame) would help me.