aes {ggplot2} R Documentation

Construct aesthetic mappings

Description

<br /> Aesthetic mappings describe how variables in the data are mapped <br /> to visual properties (aesthetics) of geoms. Aesthetic mappings <br /> 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,
    size = NULL,
    group = 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)))

y

color

colour

class

label

env

[as Environment]

Details

This function also standardises aesthetic names by converting color to colour (also in substrings, e.g., point_color to point_colour) 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]