Technical requirements
We will use the diamonds dataset, which is including in the ggplot2 library.
All the code can be found in the book’s GitHub repository: https://github.com/PacktPublishing/Data-Wrangling-with-R/tree/main/Part3/Chapter11.
The libraries in this chapter are as follows:
library(tidyverse) library(lubridate) library(datasets) library(patchwork) library(plotly) data("diamonds")
Off we go.