schcl {ggplot} | R Documentation

## Scale: colour (hcl)

### Description

Scale continuous variables to hue, chroma and luminance components of colour

### Usage

    schcl(plot = .PLOT, name="", to=list())

### Arguments

`plot` |
`name` |
`to` |

### Details

This colour map is the most perceptually uniform. However, use multiple mappings with care. It is often a good idea to restrict the range of the hue, as shown in the example.

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

### Author(s)

Hadley Wickham <h.wickham@gmail.com>

### See Also

`map_colour_hcl`, `hcl`

### Examples

    p <- schcl(ggplot(movies, aes=list(y=rating, x=year)))
    ggpoint(p, list(h=year))
    schcl(ggpoint(p, list(h=year)), list(h.to=c(45,60)))
    ggpoint(p, list(c=rating))
    ggpoint(p, list(l=length))
    ggpoint(p, list(h=rating, l=year))
    ggpoint(p, list(h=rating, c=year, l=year))

[Package ggplot version 0.4.2 Index]