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