This document introduces ggplot2, an R package for creating graphs and plots. It discusses the core components of ggplot2 including ggplot() for initializing plots, geom for geometries like points and lines, stat for statistical transformations, and opts for setting plot options. It provides examples using the mtcars dataset to demonstrate how to create scatter plots and add regression lines using