View source: R/scale-cont-colour.r
schcl | R Documentation |
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.
schcl(plot, name = "", to = list())
scfillhcl(plot, name = "", to = list())
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) |
Note: alpha mappings only work with the Quartz and PDF devices.
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.