aes() captures unevaluated expressions that describe how columns of the data map onto visual properties. The first two unnamed arguments are taken as x and y. Expressions are evaluated later, against the layer data, in the environment where aes() was called.

aes(...)

Arguments

...

Name-value pairs of aesthetics and expressions, e.g. aes(displ, hwy, color = class). Supported aesthetics: x, y, color (alias colour), size.

Value

An object of class ggnext_aes.

Examples

aes(speed, dist)
#> <ggnext aesthetic mapping>
#>   x -> speed
#>   y -> dist
aes(x = speed, y = dist, color = gear)
#> <ggnext aesthetic mapping>
#>   x -> speed
#>   y -> dist
#>   color -> gear