Chapter 4. Creating Scatter Plots

In this chapter, we will cover the following recipes:

  • Grouping data points within a scatter plot
  • Highlighting grouped data points by size and symbol type
  • Labeling data points
  • Correlation matrix using pairs plot
  • Adding error bars
  • Using jitter to distinguish closely packed data points
  • Adding linear model lines
  • Adding nonlinear model curves
  • Adding nonparametric model curves with lowess
  • Creating three-dimensional scatter plots
  • Creating Quantile-Quantile plots
  • Displaying the data density on axes
  • Creating scatter plots with a smoothed density representation

Introduction

In this chapter, we will learn about scatter plots in depth by looking at some advanced recipes. Scatter plots are one of the most commonly used type of graphs in ...

Get R: Data Analysis and Visualization now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.