In this section, we will be using the iris dataset to create the required plots using ggplot2.
This dataset includes three Iris species with 50 recorded samples of each, as well as a number of properties relating to each flower, including length, width, and type. One flower species is linearly separable from the other two, but in the other species case, which you can see in the dataset, two are not linearly separable from each other.
The attributes that exist in the dataset are as follows:
- Id
- SepalLengthCm
- SepalWidthCm
- PetalLengthCm
- PetalWidthCm
- Species
In this section, we will focus on creating the scattered plots for the given dataset. Creating scattered plots involves new feature analysis with the help of ggplot2. Let's now look at the steps to create scattered plots for our dataset:
- Include the library in the workspace specified. This involves the execution...