Scatter plots

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 ...

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.