Tidy data and research links
source: rstudio/general.md
is a programming language that is especially powerful for data exploration, visualization, and statistical analysis. "R
" is also a software that interprets the scipts written using it. The most popular way to interact with R is by using RStudio. To get started you need to install R and RStudio on your computer.
An extra note
Learning R links
- Data Visualization class by Andrew Heiss, github link
- Tidymodels, github
- Stat 431 by Kelly Bodwin and Hunter Glanz
- Ready for R by Ted Laderas
- Data science heros
- R weekly
Tidy data
Keeping data tuidy and record keeping is essential for science.
I recommend some useful links to get you started.
- R for data science, by Wickham and Grolemund
- R for Reproducible Scientific Analysis, by software carpentry
- Tidyverse
- Data carpentry
Must haves
When making your plots there are two must haves you need to bookmark:
- ggplot2 book
- ggplot2 as part of the tidyverse packages
- R graph gallery
- R for data science
- Interactive data viz in R - plotly and shiny
- Plotly in ggplot2
- Interactive web-based data visualization with R, plotly, and shiny Carson Sievert
- ggplot2 extension
- esquisse
Useful resources for data analysis/visualization in RStudio
- STAT545
- Data carpentry for biologists
- DATA 598
- ESM 206
- RStudio essentials
- RStudio education
- Open scapes
- RStudio education learn tidyverse
- Data challenge lab
- STA199
- learn - r for data science
Specific packages and tutorials
Figures
Figures are an important part of any publication. They are often the first thing readers look at and will help usually are the deciders as to whether non-specialists are going to read on…a good figure goes a long way! If you can spend the time it is well worth it (within reason of course). A good read on some do and don'ts for figures by Rougier et al. 2014 PLOS comp biol, while your at it check out this one by Mensh and Kording 2017.
I don't see the need to reinvent the wheel so see some useful pages:
Colour
Handy links for colour
- GeoDataViz Toolkit
- Your Friendly Guide to Colors in Data Visualisation by Lisa Charlotte Rost
- Colorbrewer2
- Color-hex
- Coloring for colorblindness
- Viz palette - love this resource!
- CSS Colours
- HTML colour names
- HTML colour codes
One of my favourite colour palettes at the moment is Viridis
install.packages("viridis")
library(viridis)
Usage of this palette with various ggplots here