schcl: Scale: colour (hcl) Scale continuous variables to hue, chroma...

View source: R/scale-cont-colour.r

schclR Documentation

Scale: colour (hcl) Scale continuous variables to hue, chroma and luminance components of colour

Description

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.

Usage

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

scfillhcl(plot, name = "", to = list())

Arguments

plot

plot

name

namen of the scale (used in the legend)

to

named list of target ranges (r.to, g.to, b.to, a.to)

Details

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

Examples

p <- schcl(ggplot(reshape::tips, aes = list(x = total_bill, y = 1)))
ggjitter(p, list(h = tip))
ggjitter(p, list(c = tip))
ggjitter(p, list(l = tip))

hadley/ggplot1 documentation built on Dec. 1, 2024, 11:23 a.m.