MDS
  • Data Analysis with R
  • Lectures
    • Programming in R
    • 1-Introduction to data science and R
    • 2-Basics in R
    • 3-Data structures and basic calculations
    • 4-Operators
    • 5-Data wrangling - 1.Import
    • 6-Data wrangling - 2.Tidy Data
    • Data exploration & visualization
    • 7-Data wrangling - 3.Transformation
    • 8-Intro2Visualization - Part 1
    • 9-Intro2Visualization - Part 2(Adjusting plots)
    • 10-Handling and visualization of categorical data
    • 11-R Markdown for communication
    • Statistical Modelling
    • 12-Intro2Statistical Modelling - Part 1
    • 13-Intro2Statistical Modelling - Part 2
    • 14-Model building and selection
    • 15-Modelling demonstration
    • Programming in R
    • 16-String manipulation and regular expressions
    • 17-Functions and Iteration 1 (Loops)
    • 18-Iteration 2 (purrr and the map family)
    • slides, keyboard shortcuts:
    • o: outline
    • w: widescreen on/off
    • f: fullscreen on/off
    • ctrl +/ ctrl -: zoom in/out
    • p: presenter mode with additional info (NOT in Safari)
  • Exercises
    • Practicals
    • Resources
    • Quizzes with swirl
    • Case studies
    • Case study 1
    • Case study 2
    • Case study 1 - solution
    • Case study 2 - solution
    • Demo Code
    • Lecture 8 - Geom functions
    • Lecture 8 - Code for ggplots in lecture
    • Lecture 14 - Find the model
    • Lecture 15 - Model building demo
  • Misc
  • Videos
  • About
  • Contact

Miscelleneous

Recommended literature

Books

General

Wickham & Grolemund (2017)

  • Hadley Wickham & Garret Grolemund (2017): R for Data Science, O’Reilly Media Inc., CA, U.S.A, 494p. Online accessible at http://r4ds.had.co.nz/
    → This book covers pretty much the topics taught in this course, is THE tidyverse book and also reads really nice.



Books on visualisations (i.e. ggplots)

Wickham (2016)

  • Hadley Wickham (2016): ggplot2 - Elegant Graphics for Data Analysis, 2nd edition, Springer International Publishing, Switzerland, 260p. The code and text behind the book can be accessed at github: https://github.com/hadley/ggplot2-book





Kassambara (2013)

  • Alboukadel Kassambara (2013): Guide to Create Beautiful Graphics in R, 2nd edition, STHDA, 237p.



Books on statistical modelling

Crawley (2013)

  • Michael J. Crawley (2013): The R Book, 2nd edition, Wiley & Sons, Ltd., West Sussex, UK, 975p. An online pdf version is freely available here.
    → This book is very comprehensive (almost 1000p.!) and covers basic statistics as well as many different statistical modelling approaches (which were beyond the scope of this course). However, it does not built on the tidyverse framework so all the graphics are created with the basis packages.



Zuur et al. (2009)

  • Alain F. Zuur, Elena N. Ieno, Neil J. Walker, Anatoly A. Saveliev, Graham M. Smith (2009): Mixed Effects Models and Extensions in Ecology with R, Springer Science+Business Media, LLC, NewYork, U.S.A., 574p. For more information and data files see here: http://highstat.com
    → This book covers simple linear regression models and their limitations and describes than alternative approaches (appendix A is a good start!). It includes various ecological case studies where the EDA (Exploratory Data Analayis) cycle is well described. But again, this book does not incorporate the tidyverse framework.




Ogle (2015)

  • Derek H. Ogle (2015): Introductory Fisheries Analysis with R, Chapman & Hall/CRC The R Series, UK, 317p.
    → This is a good R book for fishery ecologist, which is built on the tidyverse framework. It provides detailed instructions on performing basic fisheries stock assessment analyses in the R environment but also includes basics on linear regression and ANOVA within a fisheries context.



Programming in R

Wickham (2014)

  • Hadley Wickham (2014): Advanced R, Chapman & Hall/CRC The R Series, UK, 456p. Online accessible at http://adv-r.had.co.nz.
    → If you want to learn more on how to program and write R functions I highly recommend this book.





This is just a selection of books that are using R as statistical software. there are many more books on the market, which might be similarly useful for your purposes… Some statistic books also not cover R but are, nevertheless, extremely helpful for understanding the mathematics behind. For instance, for biologists I can recommend

  • Gerald Peter Quinn and Michael J. Keough (2002): Experimental Design and Data Analysis for Biologists, Cambridge, UK, 553p. An online pdf version is freely available here


Websites

Again, the following suggested websites represent only a small subset of websites you can find in the internet. With the recent advances in R Markdown, Blogdown, Bookdown, etc. the number of online tutorials is tremendously increasing.

General

  • RStudio Cheatsheets → well made overviews of packages and R operations summarised on 1 or 2 pages.
  • R-bloggers → a blog with news on latest advances, package presentations and online tutorials.
  • DataCamp → this website provides various online tutorials, which are partly free of charge.
  • To read up on R operators check this very nice tutorial provided on the tutorialcart website:https://www.tutorialkart.com/r-tutorial/r-operators/.
  • For fisheries-related infos on R, e.g. overviews on fishy packages and courses see the fishR website

Visalization/ggplot2

  • ggplot2 documentation
    • http://ggplot2.org
    • http://ggplot2.tidyverse.org
  • Getting help: ggplot2 mailing list
  • Overview of all geom_functions: http://ggplot2.tidyverse.org/reference/
  • For a list of theme components see also Winston Chang’s wiki on github
  • Overview of ggplot2 extensions: http://www.ggplot2-exts.org
  • The brewer scales provides nice colour schemes from the ColorBrewer particularly tailored for maps: http://colorbrewer2.org
  • The Stowers Institute provides a printable pdf that lists all colours.

R Markdown

  • Look at the R Markdown Webside from R Studio for a first start.
  • R Studio provides a useful reference guide.
  • To dig deeper you will find many youtube videos and online tutorials.
    → A good one is for instance: R for fledglings

Strings

  • To learn more about regex I recommend the excellent website http://www.regular-expressions.info. It contains many different topics, resources, examples, and tutorials at both beginner and advanced levels.

Iterations

  • A good tutorial for purrr is available on this webpage: https://jennybc.github.io/purrr-tutorial/

R Course in German

A useful German tutorial on R in environmantal studies, including practical swirl courses, can be found here: R-lab 2.0. This project is one of the so-called Lehrlabor (teaching lab) projects funded by the University of Hamburg.




saskiaotto
mareds

The difference between stupidity and genius is that genius has its limits. A.E.

CC-BY-SA 4.0