class: title-slide, left, bottom # What does this function do? ---- ## **Session 5** ### ### .right-column[ ] --- # What does this function do? <img class="center" src="data:image/png;base64,#img/session05/f1-for-help.PNG"/> --- # In the console Either in the script or in the console, typing ? before the function and run if the package is loaded: ```r ?ggsave ``` Or if the package hasn't been loaded using the package::function() format: ```r ?beepr::beep # is loaded in the Cloud ??beep # without the path requires two ?? to be global ``` --- # Getting help on Stackoverflow ... or [R Studio Community](https://community.rstudio.com/) or [NHS-R Slack group](https://nhsrcommunity.com/) <img class="center" src="data:image/png;base64,#img/session05/stackoverflow_example.PNG"/> --- # Cheat sheets Popular packages have [cheat sheets](https://rviews.rstudio.com/2021/03/10/rstudio-open-source-resorurces/) which are available as pdf downloads. <img class="center" src="data:image/png;base64,#img/session05/cheat-sheets.PNG"/> --- class: center, middle # Save your script! Think of your script (rather than the objects) as the "real" part of your analysis. File <svg viewBox="0 0 448 512" style="height:1em;position:relative;display:inline-block;top:.1em;" xmlns="http://www.w3.org/2000/svg"> <path d="M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"></path></svg> Save As… <svg viewBox="0 0 448 512" style="height:1em;position:relative;display:inline-block;top:.1em;" xmlns="http://www.w3.org/2000/svg"> <path d="M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"></path></svg> ggplot_intro.R Or shortcut <kbd>Ctrl + S</kbd> --- # Recommended Reading <img class="center" src="data:image/png;base64,#img/session05/recommended-reading.PNG"/> http://socviz.co/ </br> https://serialmentor.com/dataviz/ </br> https://r4ds.had.co.nz/ All free online as well as available to buy as hardcopies --- # Art interlude https://twitter.com/accidental__aRt </br> -- </br> </br> ## Computational aRt https://art.djnavarro.net/ https://www.data-imaginist.com/art --- <img src="data:image/png;base64,#05-workshop_functions_files/figure-html/unnamed-chunk-3-1.png" width="80%" /> [YouTube of the R Ladies talk](https://www.youtube.com/watch?v=h0i6KAahLY8) [Source code](https://github.com/Ijeamakaanyene/aRt_ggplot) [Slides](https://ijeamakaanyene.github.io/aRt_ggplot/index.html#1) --- #### This work is licensed as </br> Creative Commons </br> Attribution </br> ShareAlike 4.0 </br> International </br> To view a copy of this license, visit </br> https://creativecommons.org/licenses/by/4.0/