Exploring graphically the dataset

In this section, we will focus on exploring the dataset graphically using a DOE scatter plot, a DOE mean plot, a DOE standard deviation plot, and a contour plot. Let's focus on each of them in turn:

  1. In this step, we will depict the scatter plot in two ways. A scatter plot shows the relationship between wt and mpg as follows:
> plot(Autompg$weight , Autompg$mpg, xlab = 'Weight of Cars', ylab = 'Miles per Gallon', main = 'Scatter Plot for MTCars Weight Vs MPG')

This gives us the following output plot:

The alternative way to depict the scatter plot is with the help of the ggplot2 package or library, which ...

Get Hands-On Exploratory Data Analysis with R 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.