scale_alpha_continuous {ggplot2}R Documentation

scale\_alpha\_continuous

Description

Alpha scale for continuous variable

Usage

scale_alpha_continuous(name = NULL, limits = NULL, breaks = NULL, 
    labels = NULL, trans = NULL, to = c(0.1, 1), legend = TRUE, 
    ...)

Arguments

name

name of scale to appear in legend or on axis. Maybe be an expression: see ?plotmath

limits

numeric vector of length 2, giving the extent of the scale

breaks

numeric vector indicating where breaks should lie

labels

character vector giving labels associated with breaks

trans

a transformer to use

to

numeric vector of length 2, giving minimum and maximum after transformation

legend

NULL

...

ignored

Details

This page describes scale\_alpha\_continuous, 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, cyl, data=mtcars, alpha=cyl))
p + scale_alpha("cylinders")
p + scale_alpha("number\nof\ncylinders")

p + scale_alpha(to = c(0.4, 0.8))

## End(Not run)

[Package ggplot2 version 0.8.9 Index]