scale_gradientn {ggplot2}R Documentation

scale_gradientn

Description

Smooth gradient between n colours

Usage

scale_colour_gradientn(name=NULL, colours, values=NULL, rescale=TRUE, space="rgb", breaks=NULL, labels=NULL, limits=NULL, trans="identity", alpha=1, ...)
scale_fill_gradientn(name=NULL, colours, values=NULL, rescale=TRUE, space="rgb", breaks=NULL, labels=NULL, limits=NULL, trans="identity", alpha=1, ...)

Arguments

name name of scale to appear in legend or on axis
colours NULL
values NULL
rescale NULL
space colour space to interpolate through, rgb or Lab, see ?colorRamp for details
breaks numeric vector indicating where breaks should lie
labels character vector giving labels associated with breaks
limits numeric vector of length 2, giving the extent of the scale
trans a transformer to use
alpha alpha value to use for colours
... other arguments

Details

This page describes scale_gradientn, see layer and qplot for how to create a complete plot from individual components.

Value

A layer

Author(s)

Hadley Wickham, http://had.co.nz/

See Also

Examples

## Not run: 

## End(Not run)

[Package ggplot2 version 0.7 Index]