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:
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:
- This step...