scale_manual {ggplot2}R Documentation

scale_manual

Description

Simple way of manually controlling scale

Usage

scale_colour_manual(name=NULL, values=NULL, ...)
scale_fill_manual(name=NULL, values=NULL, ...)
scale_size_manual(name=NULL, values=NULL, ...)
scale_shape_manual(name=NULL, values=NULL, ...)
scale_linetype_manual(name=NULL, values=NULL, ...)

Arguments

name name of scale to appear in legend or on axis
values NULL
... ignored

Details

This page describes scale_manual, 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_manual(values = c("red","blue", "green"))
    p + scale_colour_manual(values = c("8" = "red","4" = "blue","6" = "green"))
## End(Not run)

[Package ggplot2 version 0.6 Index]