color: Geom color

Description Usage Arguments See Also

Description

Describe a colors for fields.

Usage

1
color(geom, field, value = NULL)

Arguments

geom

A geom object, e.g. a call to line, point, etc.

field

A character string specifying a data field.

value

A character string (color name or hexcode), a gradiant specified as "color1-color2", an unnamed vector of colors to use, or a named vector or list mapping values to colors. (G2 also supports functions, if an R function could be converted to a JS one).

See Also

Other geom methods: adjust, opacity, position, shape, size


nteetor/golly documentation built on May 16, 2019, 8:12 p.m.