ggplot2 (version 0.9.1)

aes: Generate aesthetic mappings that describe how variables in the data are mapped to visual properties (aesthetics) of geoms.

Description

aes creates a list of unevaluated expressions. This function also performs partial name matching, converts color to colour, and old style R names to ggplot names (eg. pch to shape, cex to size)

Usage

aes(x, y, ...)

Arguments

x
x value
y
y value
...
List of name value pairs giving aesthetics to map.

See Also

aes_string

Examples

Run this code
aes(x = mpg, y = wt)
aes(x = mpg ^ 2, y = wt / cyl)

Run the code above in your browser using DataCamp Workspace