Specifying a geometric layer

ggplot(___) + 
    mapping = aes(x = ___, y = ___)
View Interactive Version

We can use ggplot’s geometric layers (or geoms) to define how we want to visualize our dataset. Geoms use geometric objects to visualize the variables of a dataset. The objects can have multiple forms like points, lines and bars and are specified through the corresponding functions geom_point(), geom_line() and geom_col():

Create a scatter plot with ggplot