Book description
Develop informative and aesthetic visualizations that enable effective data analysis in less time
Key Features
- Discover structure of ggplot2, grammar of graphics, and geometric objects
- Study how to design and implement visualization from scratch
- Explore the advantages of using advanced plots
Book Description
Applied 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 learn
- Set up the R environment, RStudio, and understand structure of ggplot2
- Distinguish variables and use best practices to visualize them
- Change visualization defaults to reveal more information about data
- Implement the grammar of graphics in ggplot2 such as scales and faceting
- Build complex and aesthetic visualizations with ggplot2 analysis methods
- Logically and systematically explore complex relationships
- Compare variables in a single visual, with advanced plotting methods
Who this book is for
Applied 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.
Publisher resources
Table of contents
- Title Page
- Copyright and Credits
- About the Author
- Packt Upsell
- Preface
-
Basic Plotting in ggplot2
- Introduction to ggplot2
-
Geometric Objects
- Analyzing Different Datasets
- Histograms
- Creating a Histogram Using qplot and ggplot
- Activity: Creating a Histogram and Explaining its Features
- Creating Bar Charts
- Creating a One-Dimensional Bar Chart
- Creating a Two-Dimensional Bar Chart
- Analyzing and Creating Boxplots
- Creating a Boxplot for a Given Dataset
- Creating a Line Chart
- Activity: Creating One- and Two-Dimensional Visualizations with a Given Dataset
- One-Dimensional Plots
- Two-Dimensional Plots
- Three-Dimensional Plots
- The Grammar of Graphics
- Summary
-
Grammar of Graphics and Visual Components
- More on the Grammar of Graphics
- Facets
- Changing Styles and Colors
- Geoms and Statistical Summaries
- Summary
-
Advanced Geoms and Statistics
- Advanced Plotting Techniques
-
Maps
- Displaying Information with Maps
- Activity: Creating a Variable-Encoded Regional Map
- Trends, Correlations, and Statistical Summaries
- Creating a Time Series Plot with the Mean, Median, and Quantiles
- Trends, Correlations, and Scatter plots
- Creating a Scatter Plot and Fitting a Linear Regression Model
- Creating a Correlation Plot
- Activity: Studying Correlated Variables
- Summary
- Solutions
- Other Books You May Enjoy
Product information
- Title: Applied Data Visualization with R and ggplot2
- Author(s):
- Release date: September 2018
- Publisher(s): Packt Publishing
- ISBN: 9781789612158
You might also like
video
Data Visualization in R With ggplot2
In this course, Kara Woo teaches you how to create great looking, insightful data visualizations using …
book
Graphical Data Analysis with R
This book focuses on why one draws graphics to display data and which graphics to draw …
book
R Data Visualization Recipes
Translate your data into info-graphics using popular packages in R About This Book Use R's popular …
book
Visualizing Data in R 4: Graphics Using the base, graphics, stats, and ggplot2 Packages
Master the syntax for working with R’s plotting functions in graphics and stats in this easy …