Book Image

R Graphs Cookbook Second Edition

Book Image

R Graphs Cookbook Second Edition

Overview of this book

Table of Contents (22 chapters)
R Graphs Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

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