Buy new:
-24% $37.80
to get FREE delivery Friday, November 15
Ships from: Amazon
Sold by: travis_textbooks
$37.80 with 24 percent savings
List Price: $49.99
The List Price is the suggested retail price of a new product as provided by a manufacturer, supplier, or seller. Except for books, Amazon will display a List Price if the product was purchased by customers on Amazon or offered by other retailers at or above the List Price in at least the past 90 days. List prices may not necessarily reflect the product's prevailing market price.
Learn more
FREE Returns
to get FREE delivery Friday, November 15. Order within 6 hrs 35 mins
Or Non members get FREE delivery Thursday, November 21
Only 1 left in stock - order soon.
$$37.80 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$37.80
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Ships from
Amazon
Ships from
Amazon
Returns
Returnable until Jan 31, 2025
Returnable until Jan 31, 2025
For the 2024 holiday season, eligible items purchased between November 1 and December 31, 2024 can be returned until January 31, 2025.
Returns
Returnable until Jan 31, 2025
For the 2024 holiday season, eligible items purchased between November 1 and December 31, 2024 can be returned until January 31, 2025.
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
Payment
Secure transaction
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
{{numberOfItems}} item(s) added for {{price}}
$9.97

Get Fast, Free Shipping with Amazon Prime
FREE Returns
Book is in good condition and may include underlining highlighting and minimal wear. The book can also include "From the library of" labels. May not contain miscellaneous items toys, dvds, etc. . We offer 100% money back guarantee and 24 7 customer service. Free 2-day shipping with Amazon Prime! Book is in good condition and may include underlining highlighting and minimal wear. The book can also include "From the library of" labels. May not contain miscellaneous items toys, dvds, etc. . We offer 100% money back guarantee and 24 7 customer service. Free 2-day shipping with Amazon Prime! See less
to get FREE delivery Friday, November 15. Order within 6 hrs 35 mins
Or Non members get FREE delivery Wednesday, November 20 on orders shipped by Amazon over $35
Only 1 left in stock - order soon.
$$37.80 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$37.80
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Access codes and supplements are not guaranteed with used items.
{{numberOfItems}} item(s) added for {{price}}
Kindle app logo image

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.

QR code to download the Kindle App

Follow the author

Something went wrong. Please try your request again later.

R Graphics Cookbook: Practical Recipes for Visualizing Data 1st Edition

4.5 4.5 out of 5 stars 199 ratings

There is a newer edition of this item:

{"desktop_buybox_group_1":[{"displayPrice":"$37.80","priceAmount":37.80,"currencySymbol":"$","integerValue":"37","decimalSeparator":".","fractionalValue":"80","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"XV%2Fq8U4Lv6qRznxzNpQMm0sg%2B2MeacccDf1As70hqdUXIyfUKqFOZpxJI9xymEWiCtuA0AG8yMqmIyIwI2JPgMJry28IjlTnDtdR1Z9w6R8KXWx%2FdYEIERpatwJ%2FmJBF9rpwj1BTHDC22NB0KNltw%2BWxUJsl4NyJ4VHSSw2JqmIAuE%2Buob4JBn5STJ60pLYm","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$9.97","priceAmount":9.97,"currencySymbol":"$","integerValue":"9","decimalSeparator":".","fractionalValue":"97","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"XV%2Fq8U4Lv6qRznxzNpQMm0sg%2B2MeacccICQFxWJeokBCf1S3nAaWnVYYdwxf54eDVr8hrj94O9%2BOIF1hEQ71uMq3H473rTvxnVno0Eu8EMiPONVCNho9Px8z7gu47ARjug6leRI6rp9r0BsSZDXwB3Al%2F4oZot4mirPzM2CahPdabjpnsgJFT1tYn4VS38%2BL","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

Purchase options and add-ons

This practical guide provides more than 150 recipes to help you generate high-quality graphs quickly, without having to comb through all the details of R’s graphing systems. Each recipe tackles a specific problem with a solution you can apply to your own project, and includes a discussion of how and why the recipe works.

Most of the recipes use the ggplot2 package, a powerful and flexible way to make graphs in R. If you have a basic understanding of the R language, you’re ready to get started.

  • Use R’s default graphics for quick exploration of data
  • Create a variety of bar graphs, line graphs, and scatter plots
  • Summarize data distributions with histograms, density curves, box plots, and other examples
  • Provide annotations to help viewers interpret data
  • Control the overall appearance of graphics
  • Render data groups alongside each other for easy comparison
  • Use colors in plots
  • Create network graphs, heat maps, and 3D scatter plots
  • Structure data for graphing


Amazon First Reads | Editors' picks at exclusive prices

Editorial Reviews

Amazon.com Review

Q&A with Winston Chang, author of "R Graphics Cookbook: Practical Recipes for Visualizing Data"

Q. Why is your book timely?

A. Interest in R for data analysis and visualization has exploded in recent years. In the computer-tech world, computers and networks have made it much easier to gather and organize data, and more and more people have recognized that there's useful information to be found. To illustrate, consider the job "data scientist": this is a job title that didn't even exist five years ago, and now it's one of the hottest tickets on the market.

At the same time, there's been a swell of interest in R in its more traditional setting, in science and engineering. I think there are many reasons for this. One, is that there's a growing recognition outside of the computer-programmer world that learning a little programming can save you a lot of time and reduce errors. Another reason is that the last few years have seen an improvement in the user-friendliness of tools for using R.

So there's a lot of interest in using R for finding information in data, and visualization an essential tool for doing this. Data visualizations can help you understand your data and find patterns when you're in the exploratory phase of data analysis, and they are essential for communicating your findings to others.

Q. What information do you hope that readers of your book will walk away with?

A. As my book is a Cookbook, the primary goal is to efficiently present solutions for visualizing data, without demanding a large investment of time from the reader. For many readers, the goal is to just figure out how to make a particular type of graph and be done with it.

There are others who will want to gain a deeper understanding of how graphing works in R. For these readers, I've written an appendix on the graphing package ggplot2, which is used extensively in the recipes in the book. This appendix explains some of the concepts in the grammar of graphics, and how they relate to structures common to data visualizations in general.

Finally, I hope that readers will find ideas and inspiration for visualizing their data by browsing the pages and looking at the pictures.

Q. What's the most exciting/important thing happening in your space?

A. I'm excited that R is becoming more and more accessible to users who don't primarily identify as programmers. Many scientists, engineers, and data analysts have outgrown programs that provide canned data analysis routines, and they're turning increasingly to R. The growing popularity of R is part of a virtuous circle: as R gains a larger user base, it encourages people to create better educational materials and programming tools for R, which in turn helps to grow the number of R users.

Technology-wise, I'm excited by Shiny, which is a framework for bringing R analyses to the web. (I should mention that this it's part of my job to work on the development of Shiny.) This makes it possible to build interactive applications for data analysis and visualization for users who don't need to know R, or even that the application is backed by R.

About the Author

Winston Chang is a software engineer at RStudio, where he works on data visualization and software development tools for R. He holds a Ph.D. in Psychology from Northwestern University. During his time as a graduate student, he created a website called "Cookbook for R", which contains recipes for handling common tasks in R. In previous lives, he was a philosophy graduate student and a computer programmer.

Product details

  • Publisher ‏ : ‎ O'Reilly Media; 1st edition (February 5, 2013)
  • Language ‏ : ‎ English
  • Paperback ‏ : ‎ 411 pages
  • ISBN-10 ‏ : ‎ 1449316956
  • ISBN-13 ‏ : ‎ 978-1449316952
  • Item Weight ‏ : ‎ 1.54 pounds
  • Dimensions ‏ : ‎ 7 x 0.9 x 9.19 inches
  • Customer Reviews:
    4.5 4.5 out of 5 stars 199 ratings

About the author

Follow authors to get new release updates, plus improved recommendations.
Winston Chang
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

Discover more of the author’s books, see similar authors, read book recommendations and more.

Customer reviews

4.5 out of 5 stars
199 global ratings

Customers say

Customers find the book very useful and excellent. They say it's concise, clear, and easy to follow. Readers appreciate the variety of examples and graphics quality. They mention it explains all of the options and rely on built-in functions. Overall, customers say the book is worth the money and recommended.

AI-generated from the text of customer reviews

41 customers mention "Use"41 positive0 negative

Customers find the book very useful, excellent, and a great addition to their office libraries. They say it has interesting and useful things. Readers also mention it's a companion for serious and casual R users.

"...combined with Chapter 15 (Getting Your Data into Shape) are not only well done, but very succinct for busy professionals...." Read more

"...alternative that's likely just as helpful, but Chang's book serves as a great reference, and contains almost everything you need all in one." Read more

"Chang's book is very useful. I had first bought it in kindle and ended up buying it in paper as a desk reference...." Read more

"...author introduces you to several other R packages that provide useful tools for handling data...." Read more

28 customers mention "Ease of use"28 positive0 negative

Customers find the book concise, clear, and easy to follow. They say it's an excellent quick reference that explains things very well. Readers also mention the recipe format is great for beginners and advanced users.

"...The explanations are very well written and organized, and the fact that all of the pertinent graphs are in color was very helpful when it came time..." Read more

"...almost like another language within R, but it's thankfully a very simple language -- far more simple and far more flexible, I feel, than the built-..." Read more

"...Recipes are easy for instant hands-on, but to figure out the principles based on discrete recipes is a demanding job for average users...." Read more

"...I am pleased with the authors style of writing and his presentation of the data...." Read more

17 customers mention "Variety of examples"17 positive0 negative

Customers find the book loaded with meaningful examples. They say the examples are short and to the point, explaining all the options. Readers also mention the book is comprehensive and covers all types of graphs.

"...This books teach you how to proceed. It has many examples and recipes...." Read more

"...dataset, and this book fills in the "art" part by providing an excellent collection of recipes for how to create and customize just about any type..." Read more

"...ggplot2 are grasped by the reader, the book does an excellent job of presenting many examples of ways to creatively use the power of ggplot2 to do..." Read more

"...He likes that there are not only recipes, but underlying reasons. The book provides insight into how R is intended to work...." Read more

13 customers mention "Graphics quality"13 positive0 negative

Customers find the graphics quality of the book excellent. They also appreciate the clean presentation, color illustrations, and beautiful photos. Readers mention the book is excellent for teaching basic and advanced graphics in R. They mention it offers nearly complete control over your graphics output, building them layer by layer.

"...Full sections are devoted to bar graphs, line graphs, scatter plots, data distribution graphics, customizing annotations, axes, legends, color..." Read more

"...It helps both to find patterns and to communicate them...." Read more

"Lots of color illustrations (one on nearly every page; some pages have a few), with a succinct 3-pronged Problem-Solution-Discussion presentation..." Read more

"Wonderful to see so many excellent visualizations (in color even) and the code that produces it...." Read more

6 customers mention "Value for money"6 positive0 negative

Customers find the book worth the money. They say it's an excellent quick reference at a fair price.

"...Very well recommended." Read more

"...Most definitely worth the time & $." Read more

"...This book might be more valuable than R cookbook, despite being limited to graphics...." Read more

"...It's definitely worth the price." Read more

5 customers mention "Organization"5 positive0 negative

Customers find the book well-organized and easy to use.

"Great book! The book is very well organized, which enables fast learning.The reason for missing a star:..." Read more

"...The index is well organized and makes it simple to flip to the right section, figure out how to do something using the examples and then make..." Read more

"This book is well-organized, well-written, and full of relevant examples. It's the best programming reference book I've ever used...." Read more

"Excellent book. Very detailed and organized, although it's not exclusive." Read more

Five Stars
5 out of 5 stars
Five Stars
Excellent book, has exactly what I was looking for
Thank you for your feedback
Sorry, there was an error
Sorry we couldn't load the review

Top reviews from the United States

Reviewed in the United States on May 27, 2013
This book is the third that I have recently used to get up to speed on the R language and environment. The other two texts include "R in a Nutshell" and "R in Action" (see my review). The main catalysts behind my decision to purchase another book on R was my need to get up to speed with using the language to create graphs, and that not only are plotting functions that come with base R not unified behind a common interface and set of options, there exist limitations with base R plotting functions. Of course, there are other plotting functions across the over 2500 packages that have become available to the community, but the ggplot2 package that is the focus of this book is well regarded and grown in use to become one of the most popular R packages since its release in 2005.

What Chang presents in this book is extremely practical. My recent pro bono work to move a client away from Microsoft Excel to this powerful open source platform and industry standard used for both small and big data analytics is partially testament to the usefulness of this book. While I have needed to peruse R package documentation as part of this work, it is not a stretch to say that a majority of what I needed was contained in this book, either as starting points or complete examples. The explanations are very well written and organized, and the fact that all of the pertinent graphs are in color was very helpful when it came time to understanding how ggplot2 can be used for tasks such as plotting multiple lines in one plot, and the data setup that is necessary to perform these tasks, which is a bit different than base R plotting functions, but worth the effort to use since ggplot2 employs universal usage patterns.

While "R in Action" might be better at easing the reader into the R language and environment, this book starts with enough R basics in its first two chapters, such as installing packages and loading data, that most will find it sufficient for getting their feet wet, and the author's introduction to ggplot2 in the appendix combined with Chapter 15 (Getting Your Data into Shape) are not only well done, but very succinct for busy professionals. After discussing bar graphs, line graphs, scatter plots, and summarized data distributions, the author presents annotations, axes, legends, and controlling the overall appearance of graphs, followed by discussions on facets, miscellaneous graphs, and outputting for presentation. If you are new to ggplot2, you will probably need to touch a majority of these chapters to some degree in order to get up to speed, but information is easy to find. Very well recommended.
9 people found this helpful
Report
Reviewed in the United States on September 1, 2016
If you're ever fumbling around with data in R, you're probably familiar with the built-in, unattractive graphics. ggplot2's been increasingly recognized as a necessity for getting the most out of your imagery. It offers nearly complete control over your graphics output, building them layer by layer.

I spent a solid year learning and exploring R as a graduate student before I cracked open Winston Chang's R Graphics Cookbook and started learning ggplot2's little oddities. ggplot2 is itself almost like another language within R, but it's thankfully a very simple language -- far more simple and far more flexible, I feel, than the built-in graphics options.

Since you'll be printing your graphics step by step -- your boundaries before your lines; your lines separately from points; etc. -- it's easy to keep track of where every impact on the output image is occurring, allowing you to easily tweak the code and get immediate results. E.g., if annotations are not lining up where you want, or font size needs to be reduced.

Chang's cookbook is separated by what feature you need to either edit or create, making it easy to jump to what the reader needs. Full sections are devoted to bar graphs, line graphs, scatter plots, data distribution graphics, customizing annotations, axes, legends, color options, and cetera. Nearly 400 pages of text and images showing different ways of customizing and displaying every piece of your graphics. It's not a book you read cover to cover -- just the resource that 'cookbook' implies, meeting the reader's specific needs.

If you want to just jump into the code and see what you can do with your own data, there's no better place to start. Almost no time is devoted to unnecessary exercises or teaching you the fundamentals of the R programming language. Exploring the far reaches of the Internet is a free alternative that's likely just as helpful, but Chang's book serves as a great reference, and contains almost everything you need all in one.
2 people found this helpful
Report
Reviewed in the United States on June 26, 2016
Great book! The book is very well organized, which enables fast learning.

The reason for missing a star:
After 3 chapters, I notice that there are a lot of similarities among of the plots. It would be immensely helpful if the author added a brief introductions on ggplot: the philosophy of the developers and the common features of different geoms. To me, it works like a photoshop, things work in layers and the order of layers affect the output. An overview of ggplot is helpful is because before you plot anything, it is a good idea to have a holistic picture in mind what layers I would be needing and which is the best way to organize the layers. Recipes are easy for instant hands-on, but to figure out the principles based on discrete recipes is a demanding job for average users.

Updated: in the end of the book, there is appendix A, which explains the philosophy of ggplot. -This is exactly what I wanted. I realized this after finishing the first 6 chapter. It really helps.
3 people found this helpful
Report

Top reviews from other countries

Translate all reviews to English
R. Magallanes Quintanar
5.0 out of 5 stars La biblia de graficación en R.
Reviewed in Mexico on June 21, 2017
Este libro no debería faltar en la biblioteca de cualquier usuario de R. Aborda de manera inmediata la forma de elaborar gráficas de barra, lineas y diagramas de dispersión. A partir de aquí se presentan técnicas para la elaboración de gráficas descriptivas como los histogramas, poligonos de frecuencia y gráficas de violín entre muchas otras opciones. El texto continua con las anotación en gráficas, esto es, el insertar texto o ecuaciones en cualquier parte de las gráficas.A partir de aquí se abordan temas avanzados como el manejo de apariencia, ejes, leyendas y colores. El libro también aborda la salida de las gráficas en diversos formatos con propósito de publicación.
Cabe mencionar que este libro hace un uso extensivo del paquete ggplot2, el cual es el estándar de facto para gráficas en R por lo cual el libro tiene el doble propósito de cubrir tanto la graficación básica en R así como lal graficación con ggplot2.
Totalmente recomendable.
Sulaiman Qizilbash
5.0 out of 5 stars Five Stars
Reviewed in India on August 25, 2017
Great book if you want a quick view of the potential of graphics in R
Noa
5.0 out of 5 stars Essential book for R users
Reviewed in Spain on November 26, 2016
Because there are many opinion of this book yet, I just have to say that is essential if you want to build graphs in R.
パラパラ
5.0 out of 5 stars very good book
Reviewed in Japan on March 2, 2018
非常に良い本。
グラフィカルな結果の数式と例があります。
初心者向けのソフトウェアRの使用を理解する上で非常に役立ちます。
B Lehnert
5.0 out of 5 stars So verstehe auch ich ggplot2
Reviewed in Germany on February 18, 2015
Viele gute Gründe sprechen dafür, Statistik mit R zu rechnen. Zu den besten gehören die Grafikfunktionen. Und jetzt kommt Hadley daher und programmiert mit ggplot2 ein neues Grafiksystem für R und erhält von allen Seiten größtes Lob und alle finden ggplot2 ach so gut. Es gibt viele Argumente für ggplot2, aber mir fehlte es an einer für mein Gehirn passenden Einführung. Denn letztlich handelt es sich um eine Grafikbeschreibungssprache die gelernt werden will und die ganz anders ist als die mit R mitgelieferte base graphics. Ich habe es mit Hadleys Originalbuch (in der ersten Auflage) versucht und bin damit nicht glücklich geworden. Anscheinend braucht mein Gehirn viel Beispiel-Code, anscheinend bin ich ein Typ, zu dem der Cookbook-Ansatz passt. Mit diesem Ding nutze auch ich jetzt ggplot2 gerne und fange an zu verstehen, warum manche Leute so begeistert sind. Falls ich in 6 Monaten nicht auch begeistert bin, dann hat es nicht an dem Buch gelegen.

Geht es denn ich dem Buch nur um ggplot2? Nein, da ist einiges zu lesen über base graphics, da werden Mosaic plots mit vcd und Kuchendiagramme mit base graphics gemacht, aber der Schwerpunkt liegt ganz klar im Bereich ggplot2.

Das Buch kann man auch kostenlos online lesen und es sogar als PDF herunterladen. Es ist gut. Darum habe ich es gekauft. Einmal, weil ich gerne zwischendurch schnell zu einem Buch greife, dann weil ich auf der Suche nach der richtigen Grafik gerne mit den Fingern die Seiten durchrauschen lasse und nicht zuletzt, weil die Kombination aus kostenlosem und käuflichem Buch eine unbedingt unterstützenswerte Idee ist und wer das auch findet und das Geld hat, der sollte das die Verlage auch in Form von Einkünften wissen lasssen. Zumal das Buch einen sehr moderaten Preis hat.

Manchmal schreibe ich ans Ende einer Rezension Kaufempfehlung! In diesem Fall rate ich, in die kostenlose online-Version zu schauen und sich dann selbst zu entscheiden. Ich würde es wieder kaufen.