map_colour_gradient {ggplot}R Documentation

Aesthetic mapping: colour gradient

Description

Map values to a colour gradient

Usage

map_colour_gradient(x, low="red", mid="white",high="black", midpoint = 0, from=range(x, na.rm=TRUE))

Arguments

x data vector
low colour to use at bottom of scale
mid colour to use at middle of scale
high colour to use at top of scale
midpoint where mid point colour should be used
from

Author(s)

Hadley Wickham <h.wickham@gmail.com>


[Package ggplot version 0.4.2 Index]