map_colour_rgb {ggplot} | R Documentation |
Map variables to red, green or blue components.
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))
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 |
Hadley Wickham <h.wickham@gmail.com>