Learn R …as you learnt your mother tongue

Retired

This book is no longer available for sale.

Learn R …as you learnt your mother tongue

About the Book

This book covers different aspects of the use of the R language plus the languages behind some R packages, including the grammar of graphics implemented in package 'ggplot2' and the grammar of data manipulation implemented in the 'tidyverse' packages. 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 explanations and highlight aspects that may differ from readers expectations, 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 seeing 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 95% complete, but some of the existing text and examples will be revised before final release. Please, do give feedback.

The original datasets and files in formats foreign to R that are used in examples in the book are available in package 'learnrbook' available through CRAN.

Current version is up-to-date with ggplot2 2.2.1 and with several packages extending ggplot2 as released through CRAN, including my own 'ggpmisc' 0.2.15.

About the Author

Pedro J. Aphalo
Pedro J. Aphalo

I started using R in the late 1990's for the analysis of data from my own experiments. Shortly afterwards in 2001, I started teaching R at BSc and MSc level at the University of Jyväskylä (Finland). I have developed several R packages of which nine are in CRAN , the public repository of R packages. Over the years I have written programs and scripts in about a dozen different languages.

I am currently a Lecturer in Physiological Plant Ecology and Principal Investigator at the Department of Biosciences of the University of Helsinki (Finland). The main focus of my research in on the study of the mechanisms of acquisition and use of information by plants: a field called 'Sensory Ecology of Plants'. I teach ecology, statistics and methods for reproducible research.

My R packages are described at http://www.r4photobiology.info/ and my research in plant biology at http://blogs.helsinki.fi/senpep-blog/

Table of Contents

01 Introduction (95% done)

02 R as a powerful calculator (100% done)

03 R scripts and programming (100% done)

04 R's built-in functions (95% done)

05 Storing and manipulating data with R (90% done)

06 Plots with ggplot (100% done)

07 Extensions to ggplot (100 % done)

08 Plotting maps and images (95% done)

09 If and when R needs help (100% done)

10 Further reading about R (20% done)

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub