aes {ggplot2} R Documentation

Construct aesthetic mappings

Description


Aesthetic mappings describe how variables in the data are mapped
to visual properties (aesthetics) of geoms. Aesthetic mappings
can be set in ggplot() and in individual layers.

Usage

aes(
    x = NULL,
    y = NULL,
    z = NULL,
    label = NULL,
    color = NULL,
    colour = NULL,
    alpha = NULL,
    fill = NULL,
    title = NULL,
    shape = NULL,
    class = NULL,
    ... = NULL);

Arguments

x

List of name-value pairs in the form aesthetic = variable describing which variables in the layer data should be mapped to which aesthetics used by the paired geom/stat. The expression variable is evaluated within the layer data, so there is no need to refer to the original dataset (i.e., use ggplot(df, aes(variable)) instead of ggplot(df, aes(df$variable))). The names for x and y aesthetics are typically omitted because they are so common; all other aesthetics must be named.

y

-

color

The color mapping name

colour

the alias name of the color parameter

class

mapping data of the element class group.

label

data source for the scatter annotation label text

env

[as Environment]

Details

This function also standardises aesthetic names by converting color to colour (also in substrings, e.g., pointcolor to pointcolour) and translating old style R names to ggplot names (e.g., pch to shape and cex to size).

Authors

SMRUCC genomics institute

Value

A list with class uneval. Components of the list are either quosures or constants.

clr value class

Examples


[Package ggplot2 version 1.0.0.0 Index]