aes {ggplot2} | R Documentation |
Aesthetic mappings describe how variables in the data are mapped to visual properties (aesthetics) of geoms.
aes(x, y, ...)
x |
x value |
y |
y value |
... |
List of name value pairs |
aes creates a list of unevaluated expressions. This function also performs partial name matching, converts color to colour, and old style R names to new ggplot names (eg. pch to shape, cex to size)
Hadley Wickham <h.wickham@gmail.com>
aes(x = mpg, y = wt) aes(x = mpg ^ 2, y = wt / cyl)