R Graphics Cookbook
Practical Recipes for Visualizing Data
Publisher: O'Reilly Media
Final Release Date: December 2012
Pages: 416

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
Table of Contents
Product Details
About the Author
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyR Graphics Cookbook
 
4.5

(based on 23 reviews)

Ratings Distribution

  • 5 Stars

     

    (14)

  • 4 Stars

     

    (8)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (1)

  • 1 Stars

     

    (0)

96%

of respondents would recommend this to a friend.

Pros

  • Helpful examples (19)
  • Easy to understand (17)
  • Concise (15)
  • Well-written (13)
  • Accurate (12)

Cons

    Best Uses

    • Intermediate (18)
    • Novice (13)
    • Student (12)
    • Expert (8)
      • Reviewer Profile:
      • Developer (14), Educator (8), Designer (3)

    Reviewed by 23 customers

    Sort by

    Displaying reviews 1-10

    Back to top

    Previous | Next »

     
    5.0

    Makes ggplot usable

    By peter2108

    from Wakefield, UK

    Verified Buyer

    Pros

    • Accurate
    • Concise
    • Easy to understand
    • Helpful examples
    • Well-written

    Cons

      Best Uses

      • Intermediate

      Comments about oreilly R Graphics Cookbook:

      The book is about ggplot mostly. ggplot is a great system but a pig to try and learn. This book helps a lot, for me taking ggplot into the domain of the usable. I am very happy with it. There is stuff on basic graphics as well but sparse and anyway not really needed

       
      5.0

      Great book with lots of examples!

      By Orlando Mezquita

      from Puerto Rico

      About Me Educator

      Verified Buyer

      Pros

      • Accurate
      • Concise
      • Easy to understand
      • Helpful examples
      • Well-written

      Cons

        Best Uses

        • Intermediate
        • Novice

        Comments about oreilly R Graphics Cookbook:

        This book is very easy to follow. Instead of general recipes of how to use the different features of ggplot2, it has lots of specific examples.

         
        5.0

        Exemplary cookbook! (ggplot only)

        By Charles Brewer

        from UK

        About Me Consultant, Designer

        Verified Reviewer

        Pros

        • Clear
        • Comprehensive
        • Helpful examples
        • Well-structured

        Cons

        • None

        Best Uses

        • Intermediate
        • Novice
        • Student

        Comments about oreilly R Graphics Cookbook:

        R Graphics Cookbook is a well-aimed, well-structured set of examples of use of the R ggplot2 package. It makes use of the Grammar of Graphics approach which is embedded in the product without burdening the reader with too much theory.

        Winston Chang has chosen what for me is a first class set of examples which go for maximum simplicity - no trying to remember what happens inside double square parentheses if the parameter dtring begins with just a comma!), and most lots and lots of graphics to show just how things are achieved.

        It is almost a book to be flicked through until you find the kind of graphic you want, and then see how to create it.

        Most intelligently, Chang has also included a chapter of data transformation techniques, including my favourite - reshape (which could have had a chapter on its own).

        The book is so clear that I have now pretty much abandoned using Excel for graphics (I have been fighting this horrible piece of software for over 20 years and I still can't find any sense or logic to its structure), and I am using R to create and manipulate graphics which I could never have done before.

        There are just two improvements I can think of:

        1) A couple of tables (maybe even a pull out 'n' stick on the wall chart) showing the hierarchical structure of ggplot: setting out all of the geoms, scales, stats, themes stating what the various components do and cross referencing to examples
        2) A recipe showing how to order columns in a dodged barchart to the order I want, not the default (as I found out on the internet, is involves using factor(). I have had to do this several times.

         
        5.0

        This is a must-have if you are into R

        By SpeedyEddie

        from Singapore

        About Me Educator

        Verified Reviewer

        Pros

        • Concise
        • Easy to understand
        • Helpful examples
        • Well-written

        Cons

          Best Uses

          • Expert
          • Intermediate

          Comments about oreilly R Graphics Cookbook:

          There is a treasure trove here! Lot's of nice diagrams that make data visualization possible. Thanks to R and thanks to Winston Chang.

          To author Winston: You rock, dude!

           
          4.0

          A very useful tool book

          By Joseph

          from Dallas, TX

          About Me Developer, Educator

          Verified Reviewer

          Pros

          • Concise
          • Easy to understand
          • Helpful examples

          Cons

            Best Uses

            • Expert
            • Intermediate

            Comments about oreilly R Graphics Cookbook:

            This is a very useful tool book. It shows new and very complete techniques of using ggplot2. I find it to be very helpful than the original book of ggplot2.

            (1 of 1 customers found this review helpful)

             
            4.0

            ggplot2 Graphics Cookbook

            By bduncan

            from Toronto, ON, Canada

            About Me Developer, Sys Admin

            Verified Reviewer

            Pros

            • Accurate
            • Concise
            • Helpful examples

            Cons

            • Not comprehensive enough

            Best Uses

            • Companion

            Comments about oreilly R Graphics Cookbook:

            It makes a good companion to the "R in a Nutshell" book, but don't look for any recipes for Lattice graphics in here for example; not even a mention. It's pretty much all about ggplot2 and not much else.

            It also doesn't dive deeply into the strange (for me) syntax of ggplot2. This books is really about some recipes and, if you're looking for some specifics that are covered, this works well. If you're new to R, then you will also want to pick up some other books to read as well..

             
            4.0

            A good place to start

            By Crooch

            from Toronto, Ontario, Canada

            About Me Scientist

            Verified Reviewer

            Pros

            • Concise
            • Easy to understand
            • Well-written

            Cons

              Best Uses

              • Novice
              • Student

              Comments about oreilly R Graphics Cookbook:

              The other reviewers cover the merits of this book quite well. For me this book was a welcome change to most of the other R books. I have found that learning R has so far been a tedious and difficult journey. This book has made R feel much more accessable to me and of course it covers one of R's nicest spin-offs. At the very least this book is a very good reference.

               
              5.0

              Graphics Straight to the Point

              By The constant Developer

              from Denmark

              About Me Developer

              Verified Reviewer

              Pros

              • Accurate
              • Concise
              • Easy to understand
              • Helpful examples
              • Methodical
              • Practical
              • Well-written

              Cons

                Best Uses

                • Expert
                • Intermediate
                • Novice
                • Student

                Comments about oreilly R Graphics Cookbook:

                It's a highly recommendable Cookbook. It's straight to the point, and very methodical.

                 
                5.0

                Value beyond the two existing GG books.

                By Will Beasley

                from Norman, OK

                About Me Designer, Developer, Educator

                Verified Reviewer

                Pros

                • Accurate
                • Concise
                • Easy to understand
                • Helpful examples

                Cons

                  Best Uses

                  • Expert
                  • Intermediate

                  Comments about oreilly R Graphics Cookbook:

                  I've been using ggplot for at least two years, and I've thoroughly read Wilkinson's book and Wickham's book. Yet *R Graphics Cookbook* had a lot of additional value for me.

                  There are many details and examples that improved the code I was already using, even if it was just more concise. Even when the examples were consistent with my existing approach, the material was valuable because it reinforced the approach, and consequently I'd spend less time considering alternatives when encountering similar scenarios later.

                  (1 of 1 customers found this review helpful)

                   
                  5.0

                  Lots of good examples

                  By GregDol

                  from Guangdong, China

                  About Me Developer

                  Verified Reviewer

                  Pros

                  • Easy to understand
                  • Helpful examples
                  • Well-written

                  Cons

                    Best Uses

                    • Intermediate
                    • Novice
                    • Student

                    Comments about oreilly R Graphics Cookbook:

                    I came across this book searching for a new R language book to use for one of my Coursera classes and I have never regret buying it. Not only by having step-by-step recipes for creating graphs but also these instructions helped me a lot in learning the language. Maybe some of the examples are a bit outdated due to the new software versions, but never less it is a good book for the beginners (although I had an extensive programming experience before, but not with R) and the intermediate users. For experienced users, I think there might be better options out there.

                    Displaying reviews 1-10

                    Back to top

                    Previous | Next »

                     
                    Buy 2 Get 1 Free Free Shipping Guarantee
                    Buying Options
                    Immediate Access - Go Digital what's this?
                    Ebook: $33.99
                    Formats:  DAISY, ePub, Mobi, PDF
                    Print & Ebook: $43.99
                    Print: $39.99