Combining the power of R and D3.js
blog.ae.be
Combining the power of R and D3.js
1–10 of 16 posts
Re: Combining the power of R and D3.js
#2You get interactive freechart dialogues (and much more).
Library: https://github.com/incanter/incanter
A few (impressive) slides: http://incanter.org/docs/data-sorcery-new.pdf
Re: Combining the power of R and D3.js
#3Re: Combining the power of R and D3.js
#4Re: Combining the power of R and D3.js
#5Somewhat close in spirit to what seems like a never-ending side project I have: https://dl.dropboxusercontent.com/u/7702253/AlthingiJS-1.mov Here I show Javascript and APL, but the plan is to eventually include at the very least also R. But so far I'm still rewriting what I have until I'm happy with it, so it's taking ages.
Re: Combining the power of R and D3.js
#6R is a very powerful tool, but I fail to see how it's adding value in this case. It seems like the author is advocating just using R to clean up the data and put it in JSON. The same can be done (without overhead for context switching and server-client architecture) in JS itself. Tools like Crossfilter [0] can be seamlessly integrated with D3. [0]: https://square.github.io/crossfilter/
Re: Combining the power of R and D3.js
#7Re: Combining the power of R and D3.js
#8Somewhat close in spirit to what seems like a never-ending side project I have: https://dl.dropboxusercontent.com/u/7702253/AlthingiJS-1.mov Here I show Javascript and APL, but the plan is to eventually include at the very least also R. But so far I'm still rewriting what I have until I'm happy with it, so it's taking ages.
That's cool, but... code or it didn't happen. Are you running an APL interpreter client-side or shuttling the code and data back to the server? If it's the latter, are you sandboxing in some way the arbitrary code being executed?
As for your question, data goes back to the "server" (there's go code interacting with the APL interpreter and sanitising inputs and outputs, converting to JSON, etc) but this is expected to be used as a local service (using a port not listening to the outside world), so no, no arbitrary code execution failsafes (if I were to deploy it in some real, server-ed way I'd isolate interpreters via sessions in the go 'middle' layer).
Re: Combining the power of R and D3.js
#9Re: Combining the power of R and D3.js
#10R is a very powerful tool, but I fail to see how it's adding value in this case. It seems like the author is advocating just using R to clean up the data and put it in JSON. The same can be done (without overhead for context switching and server-client architecture) in JS itself. Tools like Crossfilter [0] can be seamlessly integrated with D3. [0]: https://square.github.io/crossfilter/
1) Use R clean the data
2) Use R to turn the raw data into analytically data
3) Use R to do exploratory charting etc
[Most project stop here]
4) Final Product: RMarkdown (For static reports), Shiny (Interactive variable charts), or now D3 if I want to have interactive charts. My interactive charts would be very few.
I wouldn't want to do the first three steps with javascript.