In this section, we will focus on creating the scatter plots for the given dataset. Creating scatter plots involves new feature analysis with the help of the ggplot2 package:
- Include the library in the specified workspace. This involves execution of the following set of commands:
> library('ggplot2')
Attaching package: 'ggplot2'
The following object is masked _by_ '.GlobalEnv':
mpg
Warning message:
package 'ggplot2' was built under R version 3.5.3
> library(readr)
- Create the parameters in a systematic way that will help to resize the plots in the way we want:
> options(repr.plot.width = 6, repr.plot.height = 6)
- This step involves loading the data in our R workspace. Basically, with this step, we will convert the CSV file into a systematic dataset:
> class(longley)
[1] "data.frame"
"
- Once the...