aes {ggplot2}R Documentation

Generate aesthetic mappings

Description

Aesthetic mappings describe how variables in the data are mapped to visual properties (aesthetics) of geoms.

Usage

aes(x, y, ...)

Arguments

x x value
y y value
... List of name value pairs

Details

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)

Author(s)

Hadley Wickham <h.wickham@gmail.com>

See Also

aes_string

Examples

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

[Package ggplot2 version 0.8.2 Index]