Learn R ...as you learnt your mother tongue

Research output: Book/ReportBookProfessional


This book covers different aspects of the use of the R language plus the languages behind some R packages, such as the grammar of graphics implemented in package 'ggplot2'. I do not discuss here statistics, just R as a tool and language for data manipulation and display. The idea is for you to learn the R language like children learn a language: they work-out what the rules are simply by listening to people speak and trying to utter what they want to tell their parents. I do give some explanations and comments, but the intention is mainly for you to use the numerous examples to find-out by yourself the overall patterns and coding philosophy behind the R language. Instead of parents being the sound board for your first utterances in R, the computer will play this role. You should look at and try to repeat the examples, and then try your own hand at modifying them and see how the computer responds, does it understand you or not? Then write something new based on your current understanding of the rules...

Are you in doubt about whether this approach will work or not for you? Just give it a try, you can download the book for free in you so wish.

At the moment this book is about 85% complete, but the existing text and examples will be revised. Please, do give feedback.

Current version is up-to-date with ggplot2 2.2.0, and with several packages extending ggplot2 as released through CRAN immediately after/concurrently with this version of ggplot2.
Original languageEnglish
Number of pages350
Publication statusE-pub ahead of print - 2017
MoE publication typeD5 Text book, professional manual or guide or a dictionary

Bibliographical note

Published on-line, when final version is ready, ISBN will be assigned and printed version will be made available.

Fields of Science

  • 112 Statistics and probability
  • Data analysis
  • Reproducible research
  • 222 Other engineering and technologies
  • Computer programming

Cite this