Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Big Magic with R: Creative Learning Beyond Fear

Big Magic with R: Creative Learning Beyond Fear

This talk was presented as a keynote for the 2018 Cascadia R Conference (https://cascadiarconf.com/agenda/).

Inspired by the book "Big Magic: Creative Living Beyond Fear" by Elizabeth Gilbert, Alison talks about the five essential ingredients needed to creatively learn R and why these elements are also essential for advanced users to take their R skills to the next level. You will hear practical advice for when, where, and how to start a project in R, and how your learning can add value- both to your own knowledge and to contribute to the larger community of R learners. Along the way, she shares recommended resources and evidence-based strategies for project-based learning. Alison's background working with both new and advanced R users gives her a unique perspective on this topic.

Alison Presmanes Hill

June 02, 2018
Tweet

More Decks by Alison Presmanes Hill

Other Decks in Education

Transcript

  1. Alison Hill, Associate Professor of Pediatrics & Assistant Director
    of OHSU’s Center for Spoken Language Understanding
    @apreshill @apreshill https://alison.rbind.io/
    Slides: http://bit.ly/cascadiarconf-magic
    BIG MAGIC WITH R:
    CREATIVE LEARNING BEYOND FEAR

    View full-size slide

  2. 2
    This work is licensed under
    a Creative Commons
    Attribution-ShareAlike4.0
    International License.
    To view a copy of this license, visit:
    https://creativecommons.org/licenses/by-sa/4.0/

    View full-size slide

  3. 3
    My inspiration
    today!
    Image credits:
    https://www.elizabethgilbert.com/

    View full-size slide

  4. 4
    Who am I?
    • Use R every day
    • Self-taught

    View full-size slide

  5. pre-tidyverse

    View full-size slide

  6. 8
    Who am I?
    • Use R every day
    • Self-taught
    • Taught > 100 MS + PhD
    students

    View full-size slide

  7. 9
    Who are you?
    • R curious? R beginner?
    Advanced user?
    • Use R every day? Every week?

    View full-size slide

  8. Do your job better
    Get a ^ job
    Why are we all here?
    better

    View full-size slide

  9. Courage
    Enchantment
    Permission
    Persistence
    Trust

    View full-size slide

  10. COURAGE IS A PLAN

    View full-size slide

  11. TIDY COURAGE

    View full-size slide

  12. TIDY COURAGE

    View full-size slide

  13. Introduction to the Tidyverse
    By David Robinson
    https://www.datacamp.com/courses/introduction-to-the-tidyverse
    “Learn R, in R”
    http://swirlstats.com/students.html
    INTERACTIVE COURAGE

    View full-size slide

  14. BASE R
    COURAGE
    https://nostarch.com

    View full-size slide

  15. 23
    All-purpose courage
    • Package reference docs
    (usage / arguments / examples)
    • Package vignette
    • GitHub README
    • Is there an RStudio Cheatsheet?
    (https://www.rstudio.com/resources/cheatsheets/)
    • Are there Stat545 materials by Jenny Bryan?
    (http://stat545.com)
    • Is there a roundup by Mara Averick?
    (https://maraaverick.rbind.io/tags/roundups/)
    • RWeekly “R Tutorials”: https://rweekly.org/#Tutorials

    View full-size slide

  16. IDEAS WORDS R

    View full-size slide

  17. IDEAS WORDS R

    View full-size slide

  18. 27
    NO COURAGE, NO PLAN

    View full-size slide

  19. 28
    COURAGEOUS PLANNER

    View full-size slide

  20. ENCHANTMENT IS
    THE JOY OF WORKING
    WITH CODE THAT
    JUST WORKS

    View full-size slide

  21. “It’s not magic; it’s code.”
    — Ben Welsh, L.A. Times Data Editor

    View full-size slide

  22. DO NOT JUST READ CODE*
    *Dunlosky, J., Rawson, K. A., Marsh, E. J., Nathan, M. J., & Willingham, D. T. (2013). Improving students’
    learning with effective learning techniques: Promising directions from cognitive and educational
    psychology. Psychological Science in the Public Interest, 14(1), 4-58.

    View full-size slide

  23. Use #comments and ?
    ?function_name
    Description
    Usage
    Arguments

    View full-size slide

  24. REPETITION IS POWERFUL

    View full-size slide

  25. IDEAS WORDS R

    View full-size slide

  26. IDEAS WORDS R

    View full-size slide

  27. 44
    ADDING ENCHANTMENT

    View full-size slide

  28. 45
    JUST ENOUGH ENCHANTMENT

    View full-size slide

  29. “Your [work] not only doesn’t
    have to be original…it also
    doesn’t have to be important.”
    —Elizabeth Gilbert, Big Magic

    View full-size slide

  30. 49
    Find projects to copy
    • RWeekly “R in the Real World”:
    https://rweekly.org/#RintheRealWorld
    • Julia Silge (Data Scientist, Stack Overflow)
    https://juliasilge.com
    • Dave Robinson (Data Scientist, DataCamp)
    http://varianceexplained.org
    • Maëlle Salmon (ROpenSci, LockeData)
    http://www.masalmon.eu
    • Lucy and Nick (Vandy biostats students)
    http://livefreeordichotomize.com

    View full-size slide

  31. CHOOSE
    WISELY

    View full-size slide

  32. NOT
    YOUR
    STYLE

    View full-size slide

  33. NOT
    YOUR
    PROBLEM

    View full-size slide

  34. NOT
    YOUR
    LEVEL
    (YET!)

    View full-size slide

  35. IDEAS WORDS R

    View full-size slide

  36. IDEAS WORDS R
    Your

    View full-size slide

  37. 58
    PERMISSION TO TRY FOR THIS

    View full-size slide

  38. 59
    PERMISSION TO FEEL LIKE THIS

    View full-size slide

  39. “For most of history
    people just made things,
    and they didn’t make
    such a big freaking deal
    about it.”
    —Elizabeth Gilbert, Big Magic

    View full-size slide

  40. Hilary Parker
    https://hilaryparker.com/2013/01/30/hilary-the-most-poisoned-baby-name-in-us-history/

    View full-size slide

  41. Julia Silge
    https://juliasilge.com/blog/my-baby-boomer-name/

    View full-size slide

  42. Monica Gerber
    http://www.monicagerber.com/2018/03/little-bit-of-monica/

    View full-size slide

  43. Brooke Watson
    https://blog.brooke.science/posts/the-us-of-bey/

    View full-size slide

  44. Problem:
    The data are in Wikipedia tables I need to scrape!

    View full-size slide

  45. Problem:
    The data are in Wikipedia tables I need to scrape!
    Solution:
    Learn rvest

    View full-size slide

  46. New Problem:
    I need to scrape the same table for all 8 series!

    View full-size slide

  47. New Problem:
    I need to scrape the same table for all 8 series!
    Solution:
    Add purrr

    View full-size slide

  48. 76
    My purrrlist
    • Jennifer Thompson’s R-Ladies Intro:
    https://github.com/jenniferthompson/RLadiesIntroT
    oPurrr
    • Jenny Bryan’s tutorial:
    https://jennybc.github.io/purrr-tutorial/
    • Charlotte Wickham’s tutorial:
    https://github.com/cwickham/purrr-tutorial
    • RStudiopurrr cheatsheat:
    https://github.com/rstudio/cheatsheets/blob/maste
    r/purrr.pdf
    • Colin Fay’s purrr blog series:
    http://colinfay.me/tags/purrr/
    • Mara Averick’s roundup of “purrr-ty posts”:
    https://maraaverick.rbind.io/2017/09/purrr-ty-posts/

    View full-size slide

  49. IDEAS WORDS R

    View full-size slide

  50. IDEAS WORDS R
    Your

    View full-size slide

  51. You aren’t
    doing it
    wrong
    if no one knows what you are doing

    View full-size slide

  52. 83
    Trust
    • GitHub: https://github.com
    – Open an account
    – You will need this: http://happygitwithr.com
    • Your own website
    – My recommendation (obvious, biased): use blogdown
    – You will need this:
    https://bookdown.org/yihui/blogdown/
    • A friend!
    – Make sure someone else at your code!
    – Ideas:
    • Partner up with someone in your team / lab / company
    • Find a coding partner at your local R Meet-up or R-Ladies
    group
    • Ask the #rstats twitterverse!

    View full-size slide

  53. https://edwinth.github.io/blog-new-things/

    View full-size slide

  54. 86
    Up & running with blogdown
    https://alison.rbind.io/post/up-and-running-with-blogdown/

    View full-size slide

  55. https://amber.rbind.io/blog/2016/12/19/creatingsite/

    View full-size slide

  56. Where are we?

    View full-size slide

  57. X
    I don’t know X, but I know
    I can figure it out…

    View full-size slide

  58. X
    Courage
    Enchantment
    Permission
    Persistence
    TRUST!

    View full-size slide

  59. X
    Courage
    Enchantment
    Permission
    Persistence
    TRUST!

    View full-size slide

  60. 93
    Learning should not feel like this

    View full-size slide

  61. 94
    Learning should feel like this

    View full-size slide

  62. Trey Speegle- https://20x200.com/products/trey-speegle-thank-you

    View full-size slide