Buy new:
Save with Used - Good

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
ggplot2: Elegant Graphics for Data Analysis (Use R!) 1st ed. 2009. Corr. 3rd printing 2010 Edition
Purchase options and add-ons
Provides both rich theory and powerful applications
Figures are accompanied by code required to produce them
Full color figures
- ISBN-100387981403
- ISBN-13978-0387981406
- Edition1st ed. 2009. Corr. 3rd printing 2010
- PublisherSpringer
- Publication dateFebruary 22, 2010
- LanguageEnglish
- Dimensions6.5 x 0.5 x 9.75 inches
- Print length213 pages
There is a newer edition of this item:
Frequently bought together

Similar items that ship from close to you
Editorial Reviews
From the Back Cover
This book describes ggplot2, a new data visualization package for R that uses the insights from Leland Wilkison's Grammar of Graphics to create a powerful and flexible system for creating data graphics. With ggplot2, it's easy to:
- produce handsome, publication-quality plots, with automatic legends created from the plot specification
- superpose multiple layers (points, lines, maps, tiles, box plots to name a few) from different data sources, with automatically adjusted common scales
- add customisable smoothers that use the powerful modelling capabilities of R, such as loess, linear models, generalised additive models and robust regression
- save any ggplot2 plot (or part thereof) for later modification or reuse
- create custom themes that capture in-house or journal style requirements, and that can easily be applied to multiple plots
- approach your graph from a visual perspective, thinking about how each component of the data is represented on the final plot
This book will be useful to everyone who has struggled with displaying their data in an informative and attractive way. You will need some basic knowledge of R (i.e. you should be able to get your data into R), but ggplot2 is a mini-language specifically tailored for producing graphics, and you'll learn everything you need in the book. After reading this book you'll be able to produce graphics customized precisely for your problems, and you'll find it easy to get graphics out of your head and on to the screen or page.
Hadley Wickham is an Assistant Professor of Statistics at Rice University, and is interested in developing computational and cognitive tools for making data preparation, visualization, and analysis easier. He has developed 15 R packages and in 2006 he won the John Chambers Award for Statistical Computing for his work on the ggplot and reshape R packages.
Product details
- Publisher : Springer
- Publication date : February 22, 2010
- Edition : 1st ed. 2009. Corr. 3rd printing 2010
- Language : English
- Print length : 213 pages
- ISBN-10 : 0387981403
- ISBN-13 : 978-0387981406
- Item Weight : 14.4 ounces
- Dimensions : 6.5 x 0.5 x 9.75 inches
- Best Sellers Rank: #3,200,445 in Books (See Top 100 in Books)
- #301 in Graph Theory (Books)
- #614 in Mathematical & Statistical Software
- #4,060 in Probability & Statistics (Books)
- Customer Reviews:
About the author

Hadley is Chief Scientist at RStudio and a member of the R Foundation. He builds tools (both computational and cognitive) that make data science easier, faster, and more fun. His work includes packages for data science (ggplot2, dplyr, tidyr), data ingest (readr, readxl, haven), and principled software development (roxygen2, testthat, devtools). He is also a writer, educator, and frequent speaker promoting the use of R for data science. Learn more on his homepage, http://hadley.nz.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonCustomers say
Customers find the book worth investing their time in, with one noting its excellent content. Moreover, the book serves as an excellent guide to ggplot, with one customer highlighting its concise examples of ggplot code. Additionally, customers appreciate its readability, with one mentioning how it helps achieve publication-level quality figures. They also praise the book's color presentation and flexibility in creating plots.
AI Generated from the text of customer reviews
Select to learn more
Customers find the book to be worth the investment, appreciating how it lays out the underlying concepts of ggplot2.
"...Yes, much of the material is available online, including even the PDF. Yes, there are extensive help files...." Read more
"...This book covers a lot of the foundational ideas and philosophy behind ggplot, as well as providing great example code...." Read more
"...I'm glad that I did. Wickham does a great job of laying out the underlying concepts behind the ggplot2 library...." Read more
"...In my opinion it is very well balanced, with enough examples to stimulate creativity, enough detail to explain principles, and concise enough to be..." Read more
Customers appreciate the book's plotting capabilities, with one customer noting it provides excellent concise examples of ggplot code, while others find it serves as the best guide to the best graphics.
"The best guide to the best graphics (I think) out there...." Read more
"...The content of the book itself starts with a basic tutorial on quick plots, and then progresses to the more systematic "grammar of graphics" types,..." Read more
"...ggplot2: Elegant Graphics for Data Analysis has helped tip the balance towards R. This book is a great orientation to the "grammar" of the ggplot2..." Read more
"..."R Graphics Cookbook" is more recent, and gives excellent concise examples of ggplot code...." Read more
Customers find the book readable and well-written, appreciating how it lays out underlying concepts clearly. One customer notes that it helps achieve publication-level quality figures.
"...browsing it, and buying it will support the market for such high quality texts...." Read more
"...foundational ideas and philosophy behind ggplot, as well as providing great example code...." Read more
"...what formula notation [1] does for regression in R: Shorten the way from concept to code...." Read more
"...On the one hand, I am happy this book allowed me to achieve publication-level quality figures in a day...." Read more
Customers appreciate the color in the book, with one mentioning the beautiful graphs in glorious color.
"...It's my and many people's favorite way to do plotting in R, with beautiful and flexible plots.)..." Read more
"...the Kindle, using the Kindle for PC application I get the graphs in their glorious colour...." Read more
"...graphics package or lattice packages anymore: ggplot2 makes better looking graphics in an intuitive way, and learning ggplot2 has improved my..." Read more
"...Actually, ggplot2 creates smooth, gorgeous graphs with very little effort, and this book explains very well how to manage every aspect of them...." Read more
Customers appreciate the flexibility of the book's content.
"...many people's favorite way to do plotting in R, with beautiful and flexible plots.) And if you use ggplot2 then you need this book...." Read more
"...orientation to the "grammar" of the ggplot2 package, which is a much more flexible and easy to use approach to data visualization than the built in..." Read more
"...You can reach in a short time and with such a flexibility results that on many other popular packages and stand-alone programs could never be..." Read more
"...Demonstrates clearly the power and the flexibility of ggplot2 with clear and concrete examples...." Read more
Top reviews from the United States
There was a problem filtering reviews. Please reload the page.
- Reviewed in the United States on March 14, 2013Format: PaperbackVerified PurchaseIf you're an R user you probably know about ggplot2. (If not, try it. It's my and many people's favorite way to do plotting in R, with beautiful and flexible plots.)
And if you use ggplot2 then you need this book. Yes, much of the material is available online, including even the PDF. Yes, there are extensive help files. Yes, you will still have to google lots of things to find answers. Some of the plot options have changed since the book was published but they still work (with helpful messages about how to update them).
But: the book is so much faster to flip through than a web search, you can mark it up, it's nicely printed in color, you will discover things serendipitously while browsing it, and buying it will support the market for such high quality texts. I'm delighted to have my own copy and, just like joining the local public radio, am proud to pay my dues.
The content of the book itself starts with a basic tutorial on quick plots, and then progresses to the more systematic "grammar of graphics" types, concluding with lots of reference material to tricky things like symbols and plot options. It's great to flip through it until I find that "I want a plot like that" and see the code right there. My only complaint is that I wish it had more on the grammar part; sometime I will need to buy and read Wilkinson The Grammar of Graphics (Statistics and Computing), too (not a replacement for this book).
- Reviewed in the United States on May 21, 2011I've played with R sporadically over the past few years, but have not yet broken through to using it on a regular basis because 1) my research teams have generally relied exclusively on SPSS and 2) producing graphs in R to communicate a quick point to them has been a bit cumbersome. The balance of investing time into R vs. addressing the problem at hand has simply been tipped towards status quo.
ggplot2: Elegant Graphics for Data Analysis has helped tip the balance towards R. This book is a great orientation to the "grammar" of the ggplot2 package, which is a much more flexible and easy to use approach to data visualization than the built in basic graphics procedures in R (and SPSS for that matter). The text gives the reader a tour of ggplot2 features as it walks us through the process of building graphs. In just a matter of days, I've been able to build several custom visualization functions that I've struggled for years to do with SPSS. I'm now preferring R for EDA and hopefully soon will be able to completely break my SPSS habit.
Two caveats: 1) this book is an orientation to the ggplot2 package and the "Grammar of Graphics" framework employed by it, not a desktop reference; and 2) the initial focus on the qplot function in the package before focusing on the ggplot function is a bit disorienting, since they are similar enough to engender confusion. As such, this book does not work well as a reference book once you've gotten comfortable enough to experiment with the ggplot2 package.
These caveats, however, should not be a concern for those new to ggplot2 or data visualization in R. This book, plus R documentation online, will help get you started. I recommend this book to all looking to break the chains of data visualization with other statistical packages.
- Reviewed in the United States on December 29, 2015Format: PaperbackVerified Purchase**** The review below is for the First Edition ... don't buy the First Ed., buy the Second Edition ! ****
Writing this to point out this book is outdated. At this point, users would be much better off with Winston Chang's "R Graphics Cookbook" which is exceptionally good.
TL;DR: Winston Chang's "R Graphics Cookbook" is more recent, and gives excellent concise examples of ggplot code. Winston and Hadley both work for RStudio, so I don't think Hadley will mind me mentioning Winston's book.
Review:
When this book was written in 2009, it was a 5 star book. As any R user knows, getting good documentation can sometimes be...difficult. This book covers a lot of the foundational ideas and philosophy behind ggplot, as well as providing great example code. However at this point, since the code is from 2009, using the example code in this book is likely a sure way to find out how descriptive the ggplot error messages are, as you will be finding out that a lot of calls are deprecated, and you should have used some other, newer call.
I wrote this review because the Revolutions blog pointed people to this book in their release message announcing ggplot2; when I saw the link I thought maybe the book had been re-written or updated, but sadly, it hasn't. That's ok, Hadley is probably doing something else awesome, and if you purchase Winston Chang's book, you won't miss this at all.
EDIT January 24, 2016:
I see Hadley Wickham, the author, has commented that the second edition is waiting on Springer to publish it. If they are sitting on it, that is beyond frustrating. When the second, revised edition comes out, I'll be sure to buy it immediately! Thanks for letting me know there is hope (and a new edition) on the horizon!
Top reviews from other countries
- Enrico SpinielliReviewed in France on November 19, 2015
2.0 out of 5 stars grayscale printing makes the paper book unreadable
Format: PaperbackVerified PurchaseThe book in itself is great but the fact the paper copy is printed in grayscale makes it impossible to make any sense of the great majority of the plots.
- axel_spamann@gmx.deReviewed in Germany on June 1, 2014
5.0 out of 5 stars Excellent. Made me understand ggplot. Both practical and conveying general ideas.
ggplot is a fantastic way to produce graphics from data. The underlying grammar of grahpics makes it both easy to use and very powerful. For me, this has been a revelation. I now focus much more on looking at visualizations of data rather than at models and tables.
The book, by the author of the ggplot package, is easy to work through. It teaches ggplot both in a very practical manner (how to solve specific tasks), and in a very general manner, conveying the underlying concepts.
The last chapters give nice introductions to the author's other well known R packages: plyr (producing group "summaries") and reshape (reshaping data from long to wide format and vice versa). These packages are also great. The introduction is short but gets the main points for use across.
- ThanosReviewed in the United Kingdom on July 5, 2013
5.0 out of 5 stars A very friendly and systematic approach to get you working on the powerful ggplot2 engine.
Format: PaperbackVerified PurchaseGradually taking the reader from the simple to the more elaborated plot building process, this is a book that most R programmers will enjoy and it will provide them the complete design power that ggplot2 supports.
- bridgkickReviewed in Canada on October 17, 2012
4.0 out of 5 stars Great reference.
Format: PaperbackVerified PurchaseDefinitely worth the money. Despite absorbing all the online docs I still found the information in the book very helpful. The description of the layering and composition process for ggplot2 definitely cleared up questions I had from previous work using ggplot2.
E.
-
jmlReviewed in Spain on April 26, 2013
3.0 out of 5 stars Está bien
Format: PaperbackVerified PurchaseSi bien el 'lenguaje' de ggplot2 es bastante interesante al facilitar enormemente la creación de ciertos tipos de gráficos, el libro no es especialmente didáctico ni está extraordinariamente bien escrito. De todos modos, es una buena alternativa a aprender el lenguaje por otros métodos.
Recomendable si tienes una gran interés en ggplot2.
Por cierto, las figuras del libro, están en color.