Useful links
Here we provide some additional links
CRAN’s Introduction to R book
https://cran.r-project.org/doc/manuals/r-release/R-intro.pdf
SIB’s First steps with R in Life Sciences - 2-day course
https://github.com/sib-swiss/first-steps-with-R-training/tree/master
It includes more on statistics on the second day.
SIB’s Introduction to Statistics with R - 3/4-day course
The SIB course Introduction to statistics with R is designed for R beginners and introduces hypothesis testing, multiple testing correction, linear models, correlation and regression, and principal component analysis.
Find the R code on the course website
https://sib-swiss.github.io/Introduction-to-statistics-with-R/
Introduction to R for Cancer Scientists
For R beginners:
https://bioinformatics-core-shared-training.github.io/r-intro/index.html
Some tutorials to learn or practice R
https://support.posit.co/hc/en-us/articles/200552336-Getting-Help-with-R
R for Data Science Book
Book (2nd edition) by Hadley Wickham (a very active R developer), Mine Çetinkaya-Rundel and Garrett Grolemund. The book makes heavy use of the tidyverse, which is a collection of R packages designed for data science. All packages share an underlying design philosophy, grammar, and data structures. ggplot2 is part of the tidyverse packages.
ggplot2 tutorial
https://ggplot2.tidyverse.org/
You can also have a look at ggplot2’s vignette.
The R Graphics Cookbook includes code to create graphs with both the base graphics
package as well as ggplot2
.
Finally, this cheatsheet is also useful and gives a nice overview !
https://rstudio.github.io/cheatsheets/data-visualization.pdf
R-charts
A site that has been created to be a reference for learning how to create charts in R as well as a place to look for inspiration. Code examples to create plots with base R, ggplot2. Color charts with R color name vs HEX equivalent.
R colors
A nice PDF file with R color names by Dr Ying Wei
http://www.stat.columbia.edu/~tzheng/files/Rcolor.pdf
Another nice PDF file with information about R colors
https://www.nceas.ucsb.edu/sites/default/files/2020-04/colorPaletteCheatsheet.pdf
R Markdown
A useful resource is RStudio’s R Markdown tutorial.
For tweaking your reports, such as chosing different output formats, or hiding or showing the code within the report, we recommend that you consult the R markdown documentation provided in this Definite guide eBook.
Cheatsheets
Several cheatsheets available for different packages, eg R Markdown, ggplot2, RStudio,…