scale_grey {ggplot2}R Documentation

scale_grey

Description

Grey colour scale

Usage

scale_colour_grey(name=NULL, start=0.2, end=0.8, labels=NULL, ...)
scale_fill_grey(name=NULL, start=0.2, end=0.8, labels=NULL, ...)

Arguments

name name of scale to appear in legend or on axis
start starting grey colour (between 0 and 1)
end ending grey colour (between 0 and 1)
labels character vector giving labels associated with breaks
... other arguments

Details

Based on ?gray.colors

This page describes scale_grey, 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: 
    p <- qplot(mpg, wt, data=mtcars, colour=factor(cyl)) 
    p + scale_colour_grey()
    p + scale_colour_grey(end = 0)
    
    # You may want to turn off the pale grey background with this scale
    p + scale_colour_grey() + theme_bw
## End(Not run)

[Package ggplot2 version 0.6 Index]