map_colour_rgb {ggplot}R Documentation

Aesthetic mapping: rgb components of colour

Description

Map variables to red, green or blue components.

Usage

map_colour_rgb(r=0, g=0, b=0, a=1, r.to = c(0,1), g.to=c(0,1), b.to=c(0,1), a.to=c(0,1), r.from = range(r, na.rm=TRUE), g.from = range(g, na.rm=TRUE), b.from = range(b, na.rm=TRUE), a.from = range(a, na.rm=TRUE))

Arguments

r red
g green
b blue
a alpha
r.to red to
g.to green to
b.to blue to
a.to alpha to
r.from
g.from
b.from
a.from

Author(s)

Hadley Wickham <h.wickham@gmail.com>


[Package ggplot version 0.4.2 Index]