R graphics cookbook : practical recipes for visualizing data /

This O’Reilly cookbook provides more than 150 recipes to help scientists, engineers, programmers, and data analysts 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 you...

Full description

Saved in:
Bibliographic Details
Main Author: Chang, Winston (Author)
Format: Book
Language:English
Published: Beijing : O'Reilly, November 2018
Sebastopol, CA : O'Reilly Media, 2019
Sebastopol, CA : November 2018
Edition:2nd edition
Subjects:
Tags: Add Tag
No Tags, Be the first to tag this record!
LEADER 14709nam a2200925 i 4500
001 dd41a6a8-3888-4645-bb39-ee9c045f7d2f
005 20240926000000.0
008 181122t20182019cc o 000 0 eng d
020 |a 1-4919-7855-4 
020 |a 1-4919-7857-0 
020 |a 1-4919-7859-7 
020 |a 1491978570 (electronic bk.) 
020 |a 9781491978559 
020 |a 9781491978573 (electronic bk.) 
020 |z 1491978600 
020 |z 9781491978603 
035 |a (Au-PeEL)EBL5568320 
035 |a (CKB)4100000007121540 
035 |a (CaSebORM)9781491978597 
035 |a (EXLCZ)994100000007121540 
035 |a (MiAaPQ)EBC5568320 
035 |a (OCoLC)1061104326 
035 |a (OCoLC)1103606028 
035 |a (OCoLC)on1103606028 
035 |a (PPN)242963234 
035 |a (Sirsi) a13317246 
035 |a (Sirsi) sron1103606028 
037 |a CL0501000052  |b Safari Books Online 
040 |a MiAaPQ  |b eng  |e rda  |e pn  |c MiAaPQ  |d MiAaPQ 
040 |a NhCcYBP  |b eng  |e rda  |e pn  |c NhCcYBP 
040 |a UMI  |b eng  |e rda  |e pn  |c UMI  |d OCLCF  |d OCLCQ  |d OCLCO 
041 0 |a eng 
050 4 |a QA276.45.R3  |b .C436 2019 
050 4 |a QA276.45.R3  |b C46 2018 
050 4 |a QA276.45.R3 
082 0 |a 519.50285513  |2 23 
100 1 |a Chang, Winston,  |e author  |1 http://viaf.org/viaf/22318481/  |1 http://dbpedia.org/resource/Winston_Chang 
100 1 |a Chang, Winston,  |e author 
245 1 0 |a R graphics cookbook :  |b practical recipes for visualizing data /   |c Chang, Winston 
250 |a 2nd edition 
250 |a Second edition 
264 1 |a Beijing :  |b O'Reilly,  |c November 2018 
264 1 |a Sebastopol, CA :  |b O'Reilly Media,  |c 2019 
264 1 |a Sebastopol, CA :  |b O'Reilly,  |c November 2018 
264 4 |c ©2019 
300 |a 1 online resource (1 volume) :  |b illustrations 
300 |a 1 online resource (501 pages) 
300 |a 1 online resource (xiii, 425 pages) :  |b illustrations (some color 
336 |a text  |b txt  |2 rdacontent 
337 |a computer  |b c  |2 rdamedia 
338 |a online resource  |b cr  |2 rdacarrier 
347 |a text file 
500 |a Includes index 
505 0 |a Intro -- Copyright -- Table of Contents -- Preface -- Recipes -- Software and Platform Notes -- Conventions Used in This Book -- O'Reilly Safari -- How to Contact Us -- Acknowledgments -- Chapter 1. R Basics -- 1.1 Installing a Package -- Problem -- Solution -- Discussion -- 1.2 Loading a Package -- Problem -- Solution -- Discussion -- 1.3 Upgrading Packages -- Problem -- Solution -- Discussion -- 1.4 Loading a Delimited Text Data File -- Problem -- Solution -- Discussion -- See Also -- 1.5 Loading Data from an Excel File -- Problem -- Solution -- Discussion -- See Also -- 1.6 Loading Data from SPSS/SAS/Stata Files -- Problem -- Solution -- Discussion -- See Also -- 1.7 Chaining Functions Together with %&gt -- %, the Pipe Operator -- Problem -- Solution -- Discussion -- See Also -- Chapter 2. Quickly Exploring Data -- 2.1 Creating a Scatter Plot -- Problem -- Solution -- See Also -- 2.2 Creating a Line Graph -- Problem -- Solution -- See Also -- 2.3 Creating a Bar Graph -- Problem -- Solution -- See Also -- 2.4 Creating a Histogram -- Problem -- Solution -- See Also -- 2.5 Creating a Box Plot -- Problem -- Solution -- See Also -- 2.6 Plotting a Function Curve -- Problem -- Solution -- See Also -- Chapter 3. Bar Graphs -- 3.1 Making a Basic Bar Graph -- Problem -- Solution -- Discussion -- See Also -- 3.2 Grouping Bars Together -- Problem -- Solution -- Discussion -- See Also -- 3.3 Making a Bar Graph of Counts -- Problem -- Solution -- Discussion -- See Also -- 3.4 Using Colors in a Bar Graph -- Problem -- Solution -- Discussion -- See Also -- 3.5 Coloring Negative and Positive Bars Differently -- Problem -- Solution -- Discussion -- See Also -- 3.6 Adjusting Bar Width and Spacing -- Problem -- Solution -- Discussion -- 3.7 Making a Stacked Bar Graph -- Problem -- Solution -- Discussion -- See Also -- 3.8 Making a Proportional Stacked Bar Graph 
505 0 |a R basics -- Quickly exploring data -- Bar graphs -- Line graphs -- Scatter plots -- Summarized data distributions -- Annotations -- Axes -- Controlling the overall appearance of graphs -- Legends -- Facets -- Using colors in plots -- Miscellaneous graphs -- Output for presentation -- Getting your data into shape -- Appendix: Understanding ggplot2 
505 8 |a 5.10 Adding Marginal Rugs to a Scatter Plot -- Problem -- Solution -- Discussion -- See Also -- 5.11 Labeling Points in a Scatter Plot -- Problem -- Solution -- Discussion -- See Also -- 5.12 Creating a Balloon Plot -- Problem -- Solution -- Discussion -- See Also -- 5.13 Making a Scatter Plot Matrix -- Problem -- Solution -- Discussion -- See Also -- Chapter 6. Summarized Data Distributions -- 6.1 Making a Basic Histogram -- Problem -- Solution -- Discussion -- See Also -- 6.2 Making Multiple Histograms from Grouped Data -- Problem -- Solution -- Discussion -- 6.3 Making a Density Curve -- Problem -- Solution -- Discussion -- See Also -- 6.4 Making Multiple Density Curves from Grouped Data -- Problem -- Solution -- Discussion -- 6.5 Making a Frequency Polygon -- Problem -- Solution -- Discussion -- See Also -- 6.6 Making a Basic Box Plot -- Problem -- Solution -- Discussion -- 6.7 Adding Notches to a Box Plot -- Problem -- Solution -- Discussion -- 6.8 Adding Means to a Box Plot -- Problem -- Solution -- Discussion -- 6.9 Making a Violin Plot -- Problem -- Solution -- Discussion -- See Also -- 6.10 Making a Dot Plot -- Problem -- Solution -- Discussion -- See Also -- 6.11 Making Multiple Dot Plots for Grouped Data -- Problem -- Solution -- Discussion -- 6.12 Making a Density Plot of Two-Dimensional Data -- Problem -- Solution -- Discussion -- See Also -- Chapter 7. Annotations -- 7.1 Adding Text Annotations -- Problem -- Solution -- Discussion -- See Also -- 7.2 Using Mathematical Expressions in Annotations -- Problem -- Solution -- Discussion -- See Also -- 7.3 Adding Lines -- Problem -- Solution -- Discussion -- See Also -- 7.4 Adding Line Segments and Arrows -- Problem -- Solution -- Discussion -- See Also -- 7.5 Adding a Shaded Rectangle -- Problem -- Solution -- Discussion -- 7.6 Highlighting an Item -- Problem -- Solution -- Discussion 
505 8 |a Problem -- Solution -- Discussion -- 9.3 Using Themes -- Problem -- Solution -- Discussion -- See Also -- 9.4 Changing the Appearance of Theme Elements -- Problem -- Solution -- Discussion -- 9.5 Creating Your Own Themes -- Problem -- Solution -- Discussion -- See Also -- 9.6 Hiding Grid Lines -- Problem -- Solution -- Discussion -- Chapter 10. Legends -- 10.1 Removing the Legend -- Problem -- Solution -- Discussion -- 10.2 Changing the Position of a Legend -- Problem -- Solution -- Discussion -- 10.3 Changing the Order of Items in a Legend -- Problem -- Solution -- Discussion -- See Also -- 10.4 Reversing the Order of Items in a Legend -- Problem -- Solution -- Discussion -- 10.5 Changing a Legend Title -- Problem -- Solution -- Discussion -- 10.6 Changing the Appearance of a Legend Title -- Problem -- Solution -- Discussion -- See Also -- 10.7 Removing a Legend Title -- Problem -- Solution -- Discussion -- 10.8 Changing the Labels in a Legend -- Problem -- Solution -- Discussion -- 10.9 Changing the Appearance of Legend Labels -- Problem -- Solution -- Discussion -- See Also -- 10.10 Using Labels with Multiple Lines of Text -- Problem -- Solution -- Discussion -- Chapter 11. Facets -- 11.1 Splitting Data into Subplots with Facets -- Problem -- Solution -- Discussion -- 11.2 Using Facets with Different Axes -- Problem -- Solution -- Discussion -- See Also -- 11.3 Changing the Text of Facet Labels -- Problem -- Solution -- Discussion -- See Also -- 11.4 Changing the Appearance of Facet Labels and Headers -- Problem -- Solution -- Discussion -- See Also -- Chapter 12. Using Colors in Plots -- 12.1 Setting the Colors of Objects -- Problem -- Solution -- Discussion -- See Also -- 12.2 Representing Variables with Colors -- Problem -- Solution -- Discussion -- See Also -- 12.3 Using a Colorblind-Friendly Palette -- Problem -- Solution -- Discussion 
505 8 |a Problem -- Solution -- Discussion -- See Also -- 3.9 Adding Labels to a Bar Graph -- Problem -- Solution -- Discussion -- See Also -- 3.10 Making a Cleveland Dot Plot -- Problem -- Solution -- Discussion -- See Also -- Chapter 4. Line Graphs -- 4.1 Making a Basic Line Graph -- Problem -- Solution -- Discussion -- See Also -- 4.2 Adding Points to a Line Graph -- Problem -- Solution -- Discussion -- See Also -- 4.3 Making a Line Graph with Multiple Lines -- Problem -- Solution -- Discussion -- 4.4 Changing the Appearance of Lines -- Problem -- Solution -- Discussion -- See Also -- 4.5 Changing the Appearance of Points -- Problem -- Solution -- Discussion -- See Also -- 4.6 Making a Graph with a Shaded Area -- Problem -- Solution -- Discussion -- See Also -- 4.7 Making a Stacked Area Graph -- Problem -- Solution -- Discussion -- See Also -- 4.8 Making a Proportional Stacked Area Graph -- Problem -- Solution -- Discussion -- See Also -- 4.9 Adding a Confidence Region -- Problem -- Solution -- Discussion -- Chapter 5. Scatter Plots -- 5.1 Making a Basic Scatter Plot -- Problem -- Solution -- Discussion -- 5.2 Grouping Points Together Using Shapes or Colors -- Problem -- Solution -- Discussion -- See Also -- 5.3 Using Different Point Shapes -- Problem -- Solution -- Discussion -- See Also -- 5.4 Mapping a Continuous Variable to Color or Size -- Problem -- Solution -- Discussion -- See Also -- 5.5 Dealing with Overplotting -- Problem -- Solution -- Discussion -- See Also -- 5.6 Adding Fitted Regression Model Lines -- Problem -- Solution -- Discussion -- 5.7 Adding Fitted Lines from an Existing Model -- Problem -- Solution -- Discussion -- 5.8 Adding Fitted Lines from Multiple Existing Models -- Problem -- Solution -- Discussion -- 5.9 Adding Annotations with Model Coefficients -- Problem -- Solution -- Discussion -- See Also 
505 8 |a See Also -- 7.7 Adding Error Bars -- Problem -- Solution -- Discussion -- See Also -- 7.8 Adding Annotations to Individual Facets -- Problem -- Solution -- Discussion -- See Also -- Chapter 8. Axes -- 8.1 Swapping X- and Y-Axes -- Problem -- Solution -- Discussion -- See Also -- 8.2 Setting the Range of a Continuous Axis -- Problem -- Solution -- Discussion -- 8.3 Reversing a Continuous Axis -- Problem -- Solution -- Discussion -- See Also -- 8.4 Changing the Order of Items on a Categorical Axis -- Problem -- Solution -- Discussion -- See Also -- 8.5 Setting the Scaling Ratio of the X- and Y-Axes -- Problem -- Solution -- Discussion -- 8.6 Setting the Positions of Tick Marks -- Problem -- Solution -- Discussion -- See Also -- 8.7 Removing Tick Marks and Labels -- Problem -- Solution -- Discussion -- 8.8 Changing the Text of Tick Labels -- Problem -- Solution -- Discussion -- 8.9 Changing the Appearance of Tick Labels -- Problem -- Solution -- Discussion -- See Also -- 8.10 Changing the Text of Axis Labels -- Problem -- Solution -- Discussion -- 8.11 Removing Axis Labels -- Problem -- Solution -- Discussion -- 8.12 Changing the Appearance of Axis Labels -- Problem -- Solution -- Discussion -- See Also -- 8.13 Showing Lines Along the Axes -- Problem -- Solution -- Discussion -- See Also -- 8.14 Using a Logarithmic Axis -- Problem -- Solution -- Discussion -- 8.15 Adding Ticks for a Logarithmic Axis -- Problem -- Solution -- Discussion -- 8.16 Making a Circular Plot -- Problem -- Solution -- Discussion -- See Also -- 8.17 Using Dates on an Axis -- Problem -- Solution -- Discussion -- See Also -- 8.18 Using Relative Times on an Axis -- Problem -- Solution -- Discussion -- See Also -- Chapter 9. Controlling the Overall Appearance of Graphs -- 9.1 Setting the Title of a Graph -- Problem -- Solution -- Discussion -- 9.2 Changing the Appearance of Text 
505 8 |a See Also 
520 |a This O’Reilly cookbook provides more than 150 recipes to help scientists, engineers, programmers, and data analysts 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 in this second edition use the updated version of the ggplot2 package, a powerful and flexible way to make graphs in R. You’ll also find expanded content about the visual design of graphics. If you have at least a basic understanding of the R language, you’re ready to get started with this easy-to-use reference. 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 more Provide annotations to help viewers interpret data Control the overall appearance of graphics Explore options for using colors in plots Create network graphs, heat maps, and 3D scatter plots Get your data into shape using packages from the tidyverse 
588 |a Description based on print version record 
588 0 |a Online resource; title from title page (Safari, viewed May 31, 2019) 
650 0 |a Computer graphics 
650 0 |a Mathematical statistics  |x Data processing 
650 0 |a R (Computer program language) 
650 0 |a Statistics  |x Data processing 
650 6 |a R (Langage de programmation) 
650 6 |a Statistique  |x Informatique 
650 7 |a R (Computer program language)  |2 fast 
650 7 |a R (Llenguatge de programació)  |2 lemac 
650 7 |a Statistics  |x Data processing  |2 fast 
776 0 8 |c Original  |z 9781491978603  |z 1491978600  |w (OCoLC)1076544092 
776 1 |z 1-4919-7860-0 
776 1 |z 9781491978603 
999 1 0 |i dd41a6a8-3888-4645-bb39-ee9c045f7d2f  |l a13317246  |s US-CST  |m r_graphics_cookbookpractical_recipes_for_visualizing_data__________________2019____2__oreila________________________________________chang__winston_____________________e 
999 1 0 |i dd41a6a8-3888-4645-bb39-ee9c045f7d2f  |l 11739533  |s US-ICU  |m r_graphics_cookbookpractical_recipes_for_visualizing_data__________________2019____2__oreila________________________________________chang__winston_____________________e 
999 1 0 |i dd41a6a8-3888-4645-bb39-ee9c045f7d2f  |l 99119296878908501  |s US-NCD  |m r_graphics_cookbookpractical_recipes_for_visualizing_data__________________2019____2__oreila________________________________________chang__winston_____________________e 
999 1 1 |l a13317246  |s ISIL:US-CST  |t BKS  |b 245c006f-c9bf-56d8-a02f-e8e102a141ad  |y 245c006f-c9bf-56d8-a02f-e8e102a141ad  |p UNLOANABLE 
999 1 1 |l a13317246  |s ISIL:US-CST  |t BKS  |a SUL-ELECTRONIC  |p UNLOANABLE