Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yxiao315 opened this issue Apr 12, 2019 · 2 comments
Open

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

yxiao315 opened this issue Apr 12, 2019 · 2 comments

Comments

@yxiao315
Copy link

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
Copy link
Contributor

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants