Book Image

Applied Data Visualization with R and ggplot2

By : Dr. Tania Moulik
Book Image

Applied Data Visualization with R and ggplot2

By: Dr. Tania Moulik

Overview of this book

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.
Table of Contents (10 chapters)

Chapter 3. Advanced Geoms and Statistics

In this chapter, we will learn how to create some specialized graphs. When we have data that is correlated, we may need to depict multiple variables in one plot. We will work on some advanced plotting techniques that combine information from three or more variables in one graph, understand how to view data that varies with time, depict geographically dependent data separately into different regions of a map, and gain an understanding of trends and correlations between variables and different ways to view them.

By the end of this chapter, you will be able to:

  • Create various types of plots using advanced plotting techniques
  • Create and superimpose density plots for comparing distributions
  • Construct time series plots and color differentiated maps
  • Utilize trends, correlations, and statistical summaries to reveal data insights