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:
- 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:
![](https://static.packt-cdn.com/products/9781789804379/graphics/assets/3fb983fc-2191-423b-868c-33e05403d026.png)
The alternative way to depict the scatter plot is with the help of the ggplot2 package or library, which is achieved by executing the following command:
> library(ggplot2)
> ggplot(data=Autompg,aes(x=weight, y=mpg)) + geom_point() + theme_minimal()
This gives us the following output plot:
![](https://static.packt-cdn.com/products/9781789804379/graphics/assets/3bd451ca-ce61-41b1-a826-879496420379.png)
- This step...