Garrick Aden-Buie Profile picture
Aug 15, 2018 8 tweets 5 min read Twitter logo Read on Twitter
Getting ready to teach dplyr joins to new #rstats users tomorrow, so naturally I productively procrastinated by getting to know the new gganimate. It is the coolest!
The readme is a great intro --…. I basically just replaced `+facet_wrap(~ key)` with `+transition_states(key)`.
I really like how easily the gganimate calls fit in with the ggplot pipeline. It's very clear @thomasp85 put a lot of thought and care into the API design.
inner_join() was the trickiest because the order of the rows matters when gganimate moves objects around. full_join() was a lot easier because all the elements stay visible.
Those are the mutating joins, here's a filtering join: semi_join(). If you want to learn more about dplyr joins, the #R4DS chapter on relational data is a great resource.…
And finally, our last join of the evening: the anti_join().

The source is available here:…

Feel free to use the source or the images for any #rstats teaching!
Encore animated join -- what if `y` has duplicate rows with the key in `x`? left_join gives all combinations of matches, so there are more rows in the result than in `x`. Thanks to @zeehio_ for pointing this out!
Thanks everyone for your comments and for sharing! The animations were super helpful in class today -- hopefully they can help you too!

I just moved the source and downloadable gifs to…

Stay tuned for {tidyr} animations next week! 😎

• • •

Missing some Tweet in this thread? You can try to force a refresh

Keep Current with Garrick Aden-Buie

Garrick Aden-Buie Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!


Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!

This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!


0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy


3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!