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 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 Slide

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

    View Slide

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

    View Slide

  5. View Slide

  6. View Slide

  7. pre-tidyverse

    View Slide

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

    View Slide

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

    View Slide

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

    View Slide

  11. Courage
    Enchantment
    Permission
    Persistence
    Trust

    View Slide

  12. COURAGE

    View Slide

  13. COURAGE IS A PLAN

    View Slide

  14. View Slide

  15. View Slide

  16. View Slide

  17. View Slide

  18. TIDY COURAGE

    View Slide

  19. TIDY COURAGE

    View Slide

  20. 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 Slide

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

    View Slide

  22. View Slide

  23. 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 Slide

  24. View Slide

  25. IDEAS WORDS R

    View Slide

  26. IDEAS WORDS R

    View Slide

  27. 27
    NO COURAGE, NO PLAN

    View Slide

  28. 28
    COURAGEOUS PLANNER

    View Slide

  29. ENCHANTMENT

    View Slide

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

    View Slide

  31. View Slide

  32. View Slide

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

    View Slide

  34. View Slide

  35. 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 Slide

  36. View Slide


  37. View Slide

  38. View Slide

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

    View Slide

  40. View Slide

  41. REPETITION IS POWERFUL

    View Slide

  42. IDEAS WORDS R

    View Slide

  43. IDEAS WORDS R

    View Slide

  44. 44
    ADDING ENCHANTMENT

    View Slide

  45. 45
    JUST ENOUGH ENCHANTMENT

    View Slide

  46. PERMISSION

    View Slide

  47. View Slide

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

    View Slide

  49. 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 Slide

  50. 50

    View Slide

  51. View Slide

  52. CHOOSE
    WISELY

    View Slide

  53. NOT
    YOUR
    STYLE

    View Slide

  54. NOT
    YOUR
    PROBLEM

    View Slide

  55. NOT
    YOUR
    LEVEL
    (YET!)

    View Slide

  56. IDEAS WORDS R

    View Slide

  57. IDEAS WORDS R
    Your

    View Slide

  58. 58
    PERMISSION TO TRY FOR THIS

    View Slide

  59. 59
    PERMISSION TO FEEL LIKE THIS

    View Slide

  60. View Slide

  61. View Slide

  62. PERSISTENCE

    View Slide

  63. “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 Slide

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

    View Slide

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

    View Slide

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

    View Slide

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

    View Slide

  68. View Slide

  69. View Slide

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

    View Slide

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

    View Slide

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

    View Slide

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

    View Slide

  74. View Slide

  75. View Slide

  76. 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 Slide

  77. IDEAS WORDS R

    View Slide

  78. IDEAS WORDS R
    Your

    View Slide

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

    View Slide

  80. TRUST

    View Slide

  81. View Slide

  82. View Slide

  83. 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 Slide

  84. View Slide

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

    View Slide

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

    View Slide

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

    View Slide

  88. View Slide

  89. Where are we?

    View Slide

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

    View Slide

  91. X
    Courage
    Enchantment
    Permission
    Persistence
    TRUST!

    View Slide

  92. X
    Courage
    Enchantment
    Permission
    Persistence
    TRUST!

    View Slide

  93. 93
    Learning should not feel like this

    View Slide

  94. 94
    Learning should feel like this

    View Slide

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

    View Slide