If you are stuck doing something in R, the quickest way to find help, is to get information on the functions that you are using from R itself. For instance, if you want to know more about ggplot’s histograms, you can type ?geom_histogram. This will give you the minimial information in order to understand the function. I find the information provided by R rather difficult to read at times, so I’ll typically use google. The ‘official’ ggplot-pages are incredibly helpful:

The stackoverflow-pages are also very helpful, because they present problems that people have had and their solutions. Nine times out of ten, you’re not the first who came across a particular problem. For example:

As we’ve seen, the cheatsheets provided by RStudio are also very helpful (

I also recommend the following books:

  1. Hadley Wickham – ggplot2: Elegant Graphics for Data Analysis. (Wickham 2016) see here

  2. Hadley Wickham & Garrett Grolemund – R for Data Science. (Garrett Grolemund 2017) see here

  3. Winston Chang – R-graphics cookbook. (Chang 2012) see here

  4. Kieran Healy – Data Visualization for Social Science. (Healy 2018) see here


Chang, Winston. 2012. R-Graphics Cookbook. 1st ed. California, US: O’Reilly Media.
Garrett Grolemund, Hadley Wickham &. 2017. R for Data Science. 1st ed. California, US: O’Reilly Media.
Healy, Kieran. 2018. Data Visualization for Social Science: A Practical Introduction with r and Ggplot2. 1st ed. world: the internet.
Wickham, Hadley. 2016. Ggplot2: Elegant Graphics for Data Analysis. 2nd ed. Cham, Switzerland: Springer International Publishing.