<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="https://www.r-bloggers.com/the-hitchhikers-guide-to-ggplot2-in-r-2/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://pachamaltese.github.io/hitchhikers_ggplot2.html"> Pachá (Batteries Included)</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>Published: 2016-11-30<br>
Updated: 2017-03-23</p>
<div align="right">
<i>“Any bleeder knows that books are never finished, only abandoned.”</i><br>
<i>Why Information Grows</i>
</div>
<h1>About the book</h1>
<div>
<img hspace="20" alt=" " align="left" src="https://i1.wp.com/pachamaltese.github.io/site/content/hitchhikers_ggplot2/hitchhikers_ggplot2.jpeg?w=456" data-recalc-dims="1">
</div>
<p>You can find the book <a target="_blank" rel="nofollow" href="https://leanpub.com/hitchhikers_ggplot2">here</a>.</p>
<p>This is a book that may look complete but changes in R package are always demanding changes in the examples contained within the book. This is why the electronic format is perfect for the purpose of this work. Trapping it inside a dead tree book is ultimately a waste of time and resources in my on view.</p>
<p>Aside from being my first book, this is also my first collaborative work. I wrote it in a 50-50 collaboration with <a target="_blank" rel="nofollow" href="http://t-redactyl.io/">Jodie Burchell</a>. Jodie is an amazing data scientist. I highly recommend reading her blog <a target="_blank" rel="nofollow" href="http://t-redactyl.io/">Standard Error</a> where you can find really good material on Reproducible Research and more.</p>
<p>This is a technical book. The scope of the book is to go straight to the point and the writing style is similar to a recipe with detailed instructions. It is assumed that you know the basics of R and that you want to learn how to create beautiful plots.</p>
<p>Each chapter will explain how to create a different type of plot, and will take you step-by-step from a basic plot to a highly customised graph. The chapters’ order is by degree of difficulty.</p>
<p>Every chapter is independent from the others. You can read the whole book or go to a section of interest and we are sure that it will be easy to understand the instructions and reproduce our examples without reading the first chapters.</p>
<p>In total this book contains 237 pages (letter paper size) of different recipes to obtain an acceptable aesthetic result. You can download the book for <em>free</em> (yes, really!) from <a target="_blank" rel="nofollow" href="https://leanpub.com/hitchhikers_ggplot2">Leanpub</a>.</p>
<h1>How the book started?</h1>
<p>Almost a year ago I finished writing the eleventh tutorial in a series on using ggplot2 I created with Jodie Burchell. </p>
<p>I asked Jodie to co-authors some blog entries when I found her blog and I realised that my interest in Data Science was reflected on her blog. The book comes after those entries on our blogs.</p>
<p>A few weeks later those tutorials evolved into the shape of an ebook. The reason behind it was that what we started to write had an unexpected success. We even had RTs from important people in the R community such as Hadley Wickham. Finally the book was released by Leanpub.</p>
<p>We also included a pack that contains the Rmd files that we used to generate every chart that is displayed in the book.</p>
<h1>Why Leanpub?</h1>
<p><a target="_blank" rel="nofollow" href="https://leanpub.com/">Leanpub</a> is a platform where you can easily write your book by using MS Word among other writing software and it even has GitHub and Dropbox integration. We went for R Markdown with LaTeX output, and that means that Leanpub is both easy to use and flexible at the same time.</p>
<p>Even more, Leanpub enables the audience to download your books for free, if you allow it, or you can define a price range with a suggested price indication. The website gives the authors a royalty of 90% minus 50 cents per sale (compared to other platforms this is convenient for the authors). You can also sell your books with additional exercises, lessons in video, etc.</p>
<p>For example, last year I updated all the examples contained in the book just a few days after ggplot2 2.2 was released and my readers had a notification email just after I uploaded the new version. People who pay or does not pay for your books can download the newer versions of if for free.</p>
<p>If that’s not enough Leanpub allows you to create bundles and sell your books as a set or you can charge another price for your book plus additional material such as Rmarkdown notebooks, instructional videos and more.</p>
<h1>What I learned from my first book?</h1>
<p>At the moment I am teaching Data Visualization and from my students I learned that good visualizations come after they learn the visualization concepts. Coding cleary helps but coding goes after the fundamentals. </p>
<p>It would be better to teach visualization fundamentals first and not in parallel while coding, and this applies specially when a part of your audience has never wrote code before.</p>
<p>I got a lot of feedback from my students last term. That was really helpful to improve the book and dive some steps in smaller pieces to facilitate the understading of the Grammar of Graphics.</p>
<p>The interested reader may find some remarkable books that can be read before mine. I highly recommend: </p>
<ul>
<li><a target="_blank" rel="nofollow" href="https://www.amazon.com/Data-Visualisation-Handbook-Driven-Design/dp/1473912148/ref=sr_1_2?ie=UTF8&qid=1480128264&sr=8-2&keywords=data+visualization">Data Visualisation: A Handbook for Data Driven Design</a></li>
<li><a target="_blank" rel="nofollow" href="https://www.amazon.com/Storytelling-Data-Visualization-Business-Professionals/dp/1119002257/ref=sr_1_1?ie=UTF8&qid=1480128264&sr=8-1&keywords=data+visualization">Storytelling with Data: A Data Visualization Guide for Business Professionals</a></li>
<li><a target="_blank" rel="nofollow" href="https://www.amazon.com/Functional-Art-introduction-information-visualization/dp/0321834739/ref=sr_1_3?ie=UTF8&qid=1480128713&sr=8-3&keywords=alberto+cairo">The Functional Art: An introduction to information graphics and visualization</a>. </li>
<li><a target="_blank" rel="nofollow" href="https://www.amazon.com/Grammar-Graphics-Statistics-Computing/dp/0387245448">The Grammar of Graphics</a></li>
</ul>
<p>Those are really good books that show the fundamentals of Data Visualisation and provide the key concepts and rules needed to communicate effectively with data. </p>
<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://pachamaltese.github.io/hitchhikers_ggplot2.html"> Pachá (Batteries Included)</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="https://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/search/data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="https://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/search/map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/search/animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/search/sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/search/SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/search/git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/search/hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/search/PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/search/time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/search/trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/llZE0p7VAOA"></a></div>