Chapter 1
Basic Plotting in ggplot2
Section 4
Introduction to ggplot2
ggplot2 is a visualization package in R. It was developed in 2005 and it uses the concept of the ‘Grammar of Graphics’ to build a plot in layers and scales. This is the syntax used for the different components (aesthetics) of a geometric object. It also involves the grammatical rules for creating a visualization. Let us learn more about it with the following topics: - Introduction to ggplot2 - Loading and Exploring a Dataset Using R Functions - The Main Concepts of ggplot2 - Types of Variables - Exploring Datasets