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
Try to render two key frames with vega(lite?) and animate between them #12
Comments
If this is successful in "vanilla" Vega, then let's see if we can generate the same from R using one of these:
|
Hi @jhofman , I managed to draw the two frames using vega-lite. And also updating between these two frames. Here is the video: vega.movMy thoughts about vega,
|
Reading around a bit about animation with Vega (seems like a popular request!) (side note - someone linked SandDance which I didn't know about, so now I "get" the One thing that was linked is gemini, which is a grammar for animating between vega/vega-lite charts. Seems like it may still be in the prototype stage, but has a paper to accompany it. On the R side, vegawidget looks like the best option to explore - I'll dig into it today. |
@sharlagelfand, excellent sleuthing, and sorry to have not explained the sanddance connection before! sounds good on exploring vegawidget. would also be curious to know if ggvis outputs vega(lite) specs. turns out we got the same lead on gemini from talk to a friend yesterday afternoon. and the same authors have a nice paper on creating animations to show different types of animations (mean, max, sd, etc.). (see #18.) so the plan is that @giorgi-ghviniashvili is going to:
|
Some initial exploration of vegawidget: https://github.com/jhofman/datamations/blob/vegawidget-exploration/sandbox/vegawidget/vegawidget_exploration.R, looking at how to create a spec in R (+ how to visualize it in R or export it to JSON) and where the spec could come in based on existing coordinates data that is calculated by datamations already |
Hi @jhofman. I managed to animate with gemini. gemini-1.mov |
It looks like Vega (or Vega-lite) might be a good "exchange format" for passing plot specifications between a base language (like R) and a rendering language (like d3).
For now, let's try to just make plots of two key frames from the salary datamation using it and see if we can link them with a transition. Specifically:
Frame 1: Scatter plot of x = degree, y = salary, color = degree
Frame 2: Plot of average salary by degree, x = degree, y = mean_salary, color = degree
The text was updated successfully, but these errors were encountered: