Develop informative and aesthetic visualizations that enable effective data analysis in less time
Key FeaturesDiscover structure of ggplot2, grammar of graphics, and geometric objectsStudy how to design and implement visualization from scratchExplore the advantages of using advanced plotsBook DescriptionApplied Data Visualization with R and ggplot2 introduces you to the world of data visualization by taking you through the basic features of ggplot2. To start with, you’ll learn how to set up the R environment, followed by getting insights into the grammar of graphics and geometric objects before you explore the plotting techniques.
You’ll discover what layers, scales, coordinates, and themes are, and study how you can use them to transform your data into aesthetical graphs. Once you’ve grasped the basics, you’ll move on to studying simple plots such as histograms and advanced plots such as superimposing and density plots. You’ll also get to grips with plotting trends, correlations, and statistical summaries.
By the end of this book, you’ll have created data visualizations that will impress your clients.
What you will learnSet up the R environment, RStudio, and understand structure of ggplot2Distinguish variables and use best practices to visualize themChange visualization defaults to reveal more information about dataImplement the grammar of graphics in ggplot2 such as scales and facetingBuild complex and aesthetic visualizations with ggplot2 analysis methodsLogically and systematically explore complex relationshipsCompare variables in a single visual, with advanced plotting methodsWho this book is forApplied Data Visualization with R and ggplot2 is for you if you are a professional working with data and R. This book is also for students who want to enhance their data analysis skills by adding informative and professional visualizations. It is assumed that you know basics of the R language and its commands and objects.
Table of ContentsBasic Plotting in ggplot2Grammar of Graphics and Visual ComponentsAdvanced Geoms and Statistics
A quick introduction to ggplot2 for R. This book will get you started with doing histograms, box plots, and linear regression using the ggplot2 library. While I was looking for something more in terms of commands and command options, this gives you the basic commands. For this book to work effectively as any sort of tutorial, you need to go the github pages or the publisher's site to download the various supplementary documents and files.
Some of the areas where you need to work with the download files--
p. 30: code in the book does not produce the plot as pictured in the book; work with the code from the downloads. p. 32: see above. p. 39: you'll have to go to the download reference for the code. p. 65: neither the code in the book or the download produces the graph as it is in the book. You'll have to work it out on your own. Not sure if that is intentional or not. p. 73: they forgot to tell you to load gridExtra. p. 108: code in the book is correct; the code in the download is incorrect. Perhaps a test to see how well one is learning the code?
(One final note, while the book clocks in at 140 pages, a lot of those pages have 1/2 page illustrations and not a lot of text.)