<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/"></div></div><div><a data-url="https://www.r-bloggers.com/the-hitchhikers-guide-to-ggplot2-in-r/" data-counturl="https://www.r-bloggers.com/the-hitchhikers-guide-to-ggplot2-in-r/" data-count="horizontal" data-text="The Hitchhiker’s Guide to Ggplot2 in R" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://pachamaltese.github.io/hitchhikers_ggplot2.html"> Reimagined Invention</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<h1>About the book</h1>
<div>
<img alt=" " src="https://i1.wp.com/pachamaltese.github.io/site/content/hitchhikers_ggplot2/hitchhikers_ggplot2.jpeg?w=456" data-recalc-dims="1">
</div>
<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 218 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>Table of contents</h1>
<ul>
<li>Chapter 1: Line plots</li>
<li>Chapter 2: Area plots</li>
<li>Chapter 3: Bar pots</li>
<li>Chapter 4: Stacked bar plots</li>
<li>Chapter 5: Scatteplots</li>
<li>Chapter 6: Weighted scatterplots</li>
<li>Chapter 7: Histograms</li>
<li>Chapter 8: Density plots</li>
<li>Chapter 9: Function plots</li>
<li>Chapter 10: Boxplots</li>
<li>Chapter 11: Linear regression plots</li>
<li>Chapter 12: LOWESS plots</li>
</ul>
<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>How the book started?</h1>
<p>A few months ago I finished writing the eleventh tutorial in a series on using ggplot2 I created with Jodie Burchell. Jodie holds a PhD, now she’s in the industry and she <strong>loves</strong> data. 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 among other things.</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, and we even had RTs from important people in the R community such as Hadley Wickham. Finally the book was released by Leanpub.</p>
<p>About me, I asked Jodie to co-write a blog entry when I found her blog and I realised that my interest in Data Science/科学数据专业化 and R Programming/R 编程语言 was reflected on her blog.</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>Just two weeks ago I updated all the examples contained in my book just a few days after ggplot2 2.2.0 was released and my readers had a notification email just after I uploaded the new version. People who pays or does not pay for your books can download the newer versions of if for free.</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. It would be better to teach the fundamentals first and not in parallel with coding, and this applies specially when your audience has never wrote code before.</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>
</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><div><div data-width="55" data-show-faces="false" data-send="true" data-layout="box_count" data-height="62" data-href="https://www.r-bloggers.com/the-hitchhikers-guide-to-ggplot2-in-r/"></div></div><div><a data-url="https://www.r-bloggers.com/the-hitchhikers-guide-to-ggplot2-in-r/" data-counturl="https://www.r-bloggers.com/the-hitchhikers-guide-to-ggplot2-in-r/" data-count="vertical" data-text="The Hitchhiker’s Guide to Ggplot2 in R" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<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"> Reimagined Invention</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/?s=tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/?s=data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/?s=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/?s=ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/?s=map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/?s=animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/?s=RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/?s=sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/?s=LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/?s=SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/?s=eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/?s=git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/?s=hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/?s=Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/?s=PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/?s=time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/?s=trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/lTRYBH2Kud8"></a></div>