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

Description Usage Arguments Details Examples

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

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

1
2
3
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

1
2
3
4
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 Aug. 19, 2019, 2:42 p.m.