Explore the full range of ggplot2 plotting capabilities to create meaningful and spectacular graphs
In Detail
ggplot2 is one of the most sophisticated and advanced packages of R and its use is constantly growing in the community of R programmers. This book is the perfect starting point for your journey in learning about one of the most refined and widely used plotting toolsâ€”ggplot2.
You will start by taking a tour of the most relevant packages available in R to create plots, such as graphics, lattice, and ggplot2. Following this, you will take a deep dive into the concepts of ggplot2 by covering different kinds of plots that will help you gear up for your first hands-on project. After this first taste of the capabilities of ggplot2, you will explore in detail the visualization approach implemented in this package, the so-called grammar of graphics, providing you with the basics to understand the backstage concepts in the plotting functions. Finally, you will take a look at some specialized and sophisticated applications of ggplot2, such as how to realize a complex scatterplot matrix, heatmaps, and how to make spatial visualization graphs.
What You Will Learn
Familiarize yourself with some important data visualization packages in R such as graphics, lattice, and ggplot2
Realize different kinds of simple plots with the basic qplot function
Understand the basics of the grammar of graphics, the data visualization approach implemented in ggplot2
Master the ggplot2 package in realizing complex and more advanced graphs
Personalize the graphical details and learn the aesthetics of plotting graphs
Save and export your plots in different formats
Include maps in ggplot graphs, overlay data on maps, and learn how to realize complex matrix scatterplots
Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.