surface_hl | R Documentation |
Creates a function that defines hue in terms of luminance.
surface_hl(range_hue, input_lum = c(0, 100))
range_hue |
|
input_lum |
|
The range_hue
you specify need not be between 0 and 360 - in fact you
might not want them to be if you want to define a surface that crosses the
hue branch-cut. The surface function will return hue values between 0 and 360.
function
that takes luminance values, returns hue values.
# single hue sfc_blues_single <- surface_hl(250) sfc_blues_single(c(0, 50, 100)) # multi hue sfc_blues_multi <- surface_hl(c(240, 260)) sfc_blues_multi(c(0, 50, 100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.