-
Notifications
You must be signed in to change notification settings - Fork 15
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
Update README, ensure table code is working #37
Comments
Need to update the README with the widget fot plotting, but confirming that the table code works and can be left in 👍 |
👍 plot examples in README work, all good: "small_salary %>% group_by(Degree) %>% summarize(mean = mean(Salary))" %>%
datamation_sanddance() example_1.mov"small_salary %>% group_by(Degree, Work) %>% summarize(mean = mean(Salary))" %>%
datamation_sanddance() example_2.movSome notes on discrepancies that remain between the originals (in the main branch README) and these versions, + beyond in the case of 3 grouping variables (e.g. penguins) and some general thoughts on what else we might want to fix. making a checklist so i can mark off as we add these in:
might have missed some things but will add to this as I find em! cc @jhofman @giorgi-ghviniashvili |
awesome, this looks great and thanks for summarizing the needed updates in an easy-to-follow checklist! |
@sharlagelfand please update gemini.web.js with this to include latest |
yes, try to use |
You can add titles now, currently |
@sharlagelfand Since this is encoding.x.axis , can you try to set it yourself and just sent it via spec? Use |
Please try to add 0.5 for padding. |
Sorry, just finally gone through all these now!
The specs here now all use
Have updated the
Where should I add this? To the actual X values? Or padding the domain on the plot? |
@sharlagelfand, @giorgi-ghviniashvili: just checking in on this. is it realistic to try to update the README w/ the new examples today (before tonight's talk)? it's okay if not, but just want to get a sense. |
@jhofman definitely realistic and my plan to! If @giorgi-ghviniashvili has time to answer some of the questions in my comment above we can make some progress on the more visual aspects of the datamations, but if not will definitely update with how it's looking now. The app is updated with the latest versions of everything. Would you be able to merge the two existing PRs, then I can rebase on them, update the README and PR my |
Not sure what's going on there, the last spec on its own looks fine so it might be something on the JS / axes faking side. |
....
|
@jhofman Ok, I fixed it. The problem was that distances between facet title and axis and regular axis title and axis are different, which made the top positions different. |
Thanks @giorgi-ghviniashvili! Filled points and facet title are working now. |
Unfortunately doesn't look like I can do the axis.scale.domain stuff on my end (due to the fake facets, the specs fly off the screen then fly back on... not what we want!), was going to try to hack it today before the talk but will have to wait to be done properly in JS! Working on updating the README now with updated GIFs, then I will PR @jhofman |
sounds good, thanks for the update. |
Looks like something is going on here with the scaling of the y-axis - it's scaled just to the domain for the jitter view (which has no axes, as shown in this comment) but then scaled 0 -> full domain for the summary view (which has axes). So the animation has these frames: jitter view, no axesjitter view, incorrect axessummary view, correct axes (but domain is too large) |
@sharlagelfand good catch! That's because we need to match domain of real faceted view for axis to the hacked facet domain. I think I fixed it. |
I've updated the README with how things are looking now, the main thing that could be updated before we merge is that the axes should show up one frame earlier (as soon as animation of infogrid -> jitter starts). A couple other questions/things to keep an eye on:
no_final_frame.mov
(Happy to move these ^^ notes to a new issue, just somewhere to collect my thoughts) |
Just to update where things are at, the app here has the latest of everything! You can change the size now, there are some defaults set but it would be nice to have it auto-size a bit based on the number of row/column facets but at least some control is nice! Still having some issues with values moving across facets but we can dig in more tomorrow. |
(Will also close this issue and move outstanding stuff to new issues tomorrow, since the README is updated!) |
thanks @sharlagelfand @giorgi-ghviniashvili is it possible that there's still a bug in the axis positioning or labeling? seems like the averages in the last frame are in the 90k region, but i remember them being in the high 80s. |
@jhofman no, the y values are 90s: |
Looks like the shiny app still shows two values about 90. is that previous screenshot from the app or somewhere else? |
Oooh - there's two different "small salary" data sets - library(dplyr)
library(datamations)
small_salary
#> # A tibble: 100 x 6
#> ID Degree Work Salary i order
#> <int> <fct> <fct> <dbl> <chr> <int>
#> 1 22 Masters Academia 81.9 id 1
#> 2 96 PhD Academia 84.5 id 2
#> 3 10 Masters Academia 82.9 id 3
#> 4 42 PhD Academia 83.8 id 4
#> 5 55 PhD Academia 83.8 id 5
#> 6 14 PhD Academia 85.3 id 6
#> 7 33 PhD Industry 91.4 id 7
#> 8 100 PhD Academia 85.3 id 8
#> 9 57 Masters Academia 83.3 id 9
#> 10 2 PhD Industry 92.3 id 10
#> # … with 90 more rows
small_salary %>%
group_by(Degree) %>%
summarise(mean = mean(Salary))
#> # A tibble: 2 x 2
#> Degree mean
#> <fct> <dbl>
#> 1 Masters 90.2
#> 2 PhD 88.2
small_salary_data
#> # A tibble: 30 x 3
#> Degree Work Salary
#> <chr> <chr> <dbl>
#> 1 Masters Industry 86
#> 2 Masters Academia 71
#> 3 PhD Industry 104
#> 4 Masters Industry 94
#> 5 Masters Academia 93
#> 6 Masters Academia 96
#> 7 PhD Academia 100
#> 8 Masters Industry 86
#> 9 PhD Academia 80
#> 10 Masters Industry 85
#> # … with 20 more rows
small_salary_data %>%
group_by(Degree) %>%
summarise(mean = mean(Salary))
#> # A tibble: 2 x 2
#> Degree mean
#> <chr> <dbl>
#> 1 Masters 90.6
#> 2 PhD 92.1 Will open a new issue for this. |
Once #23 is all closed out and we have a functional widget, will need to update the README illustrating how it works! I don't think you can embed an htmlwidget into a static README so this may have to be in the form as htmlwidget -> movie -> GIF, but will double check on that.
Since we haven't done anything with the table code yet, will take a pass through and ensure it all still works and can be left in.
The text was updated successfully, but these errors were encountered: