R In Action by Robert Kabacoff

Data Analysis and Graphics with R

A practical, example-driven introduction to using R for data analysis and statistical modeling, covering the R language and environment, data structures and manipulation, graphics (base and ggplot2), and a range of modeling techniques from linear models to classification and clustering; it also shows how to import/export data, work with databases and time series, apply resampling and model validation, create reproducible workflows and extend R with packages and custom functions, all through worked examples and clear code.

Purchase from Bookshop.org