schsv {ggplot} | R Documentation

## Scale: colour (hsv)

### Description

Scale continuous variables to hue, saturation and value components of colour.

### Usage

    schsv(plot = .PLOT, to=list())

### Arguments

`plot` |
`to` |

### Details

Use multiple mappings with care

Note: alpha mappings only work with the Quartz and PDF devices.

### Author(s)

Hadley Wickham <h.wickham@gmail.com>

### See Also

`map_colour_hsv`, `hsv`

### Examples

    p <- schsv(ggplot(movies, aes=list(y=rating, x=year)))
    ggpoint(p, list(h=year))
    schsv(ggpoint(p, list(h=year)), list(h.to=c(0.3,0.5)))
    ggpoint(p, list(s=rating))
    ggpoint(p, list(v=rating, h=0.3, s=rating))
    ggpoint(p, list(h=rating, v=year))

[Package ggplot version 0.2.2 Index]