Example

This example shows a scatterplot. It represents a rather common configuration (just a geom_point layer with use of some extra aesthetic parameters, such as size, shape, and color). The plot uses two aesthetic properties to represent the same aspect of the data (the gender column is mapped into a shape and into a color), which is possible but might be a bit overdone. The plot maps the continuous speed column onto the aesthetic size property. To ensure that even observations with a "low" speed are still mapped to rather large points, the plot explicitly uses scale_size_continuous to define the range of point sizes to use.