I gave a tech talk at the Hatfield Marine Science Center on how cool R (the programming language) is and what you can do with it.
1 of 18
Download to read offline
More Related Content
Sard HMSC Tech Talk
1. The possibilities R endless
HMSC Tech Talk
November 3rd, 2014
Nick Sard
nicksard@gmail.com
2. R is open-source, versatile, & powerful
? Open-source
¨C Inspect and change code written by others
¨C Reproducible research
? Versatile
¨C Simulate data
¨C Statistical analysis
¨C Create functions to process data
¨C Create many types of graphics
¨C Interface with websites
? Powerful
¨C Can integrate with ¡°The Cloud¡± ?
? Oregon State University
¨C Center for Genomic Research and Bioinformatics
4. R is used by many well known companies
http://www.nytimes.com/2009/01/07/technology/business-computing/07program.html?pagewanted=all&_r=0
5. Learning R might help
increase your income
http://blog.revolutionanalytics.com/2014/02/r-salary-surveys.html
6. R is la lingua statistica
? T-test, ANOVA, Linear
regression
? GLM ¨C poisson, neg.
bin., zero-inflated, logit
? Mixed-effect models
? Bayesian statistics
? But there is so much
more it can do¡
http://lh6.ggpht.com/_njskKyfiNvo/TZqYIJwbALI/AAAAAAAAA3s/FealNiZLF8U/image_thumb%5B13%5D.png?imgmax=800
7. Libraries are always expanding
R¡¯s capabilities
? Freely use libraries
¨C >30,000 functions in R
¨C Improve/modify code
? Make your own library
¨C Collection of functions
¨C Share with community
8. The number of
R packages are
growing
exponentially!
http://r4stats.com/articles/popularity/
9. The number of
R packages are
growing
exponentially!
http://r4stats.com/articles/popularity/
12. The standard R GUI is plain and hard to work with
Use R Studio instead ;)
13. R Studio makes using R easier
? Integrated development environment (IDE)
¨C Highlights syntax
¨C Completes code (using tab)
¨C Automatic indentation for functions
¨C Ingrates with documentation
¨C Easy to make and save figures
¨C Links to GitHub
? Data backup
? Work on code in collaborative groups
? Let¡¯s take a quick tour
14. R Studio layout ¨C can be personalized
Code
Console
Files, plots,
packages, & help
Workspace,
Github, & more
15. Graphics in more detail
? Focus on libraries (not base graphics)
¨C ggplot2 created by Hadley Wickham - http://docs.ggplot2.org/current/
? gg short for Grammar of Graphics
? Versatile and powerful graphics
¨C Maps -http://gis.stackexchange.com/questions/48828/how-to-make-beautiful-maps-in-r
? ArcMap alternative
¨C Rgl - http://casoilresource.lawr.ucdavis.edu/drupal/book/export/html/371
? 3D graphics
¨C Shiny - http://rstudio.github.io/shiny/tutorial/#welcome
? Makes interactive graphics on the web
¨C Shiny_rgl ¨C example: https://github.com/muschellij2/shiny-sandbox
? Create 3D web graphics
¨C Plot.ly
? More interactive web based graphics:
? http://zevross.com/blog/2014/09/10/quickly-create-online-and-interactive-plots-using-plot-ly/
18. Thanks!
? The code in the demo can be found here:
http://rpubs.com/nicksard/HMSC_tech_talk
? The slides for this PowerPoint can be found here:
http://www.slideshare.net/nicksard/sard-hmsc-tech-talk