ggplot2 is a powerful data visualization package based on the Grammar of Graphics. It builds plots by combining layers: data, aesthetic mappings (using aes()), and geometric objects (like geom_point()).
Run this example to see how it works and then try the exercise.
Click "Run" to see the example in action...Run this example to see how it works and then try the exercise.
Click "Run" to see the example in action...Your task: Create a data frame with x and y values
Click "Run" to execute your code...What function defines the aesthetic mappings in ggplot2?
SUMMARY
You learned the basic structure of ggplot2: data + aesthetics + geometry. Next, you’ll create scatter plots with more customization.