Description Usage Arguments Details Value Examples
Depricated - this function has been replaced with helper functions
1 2 3 4 5 | cyclic_hcl(n.cycles = 10, cycle.lenth = 100, h = c(0, -100), c = 100,
l = 100, cycle.h = 0, cycle.c = 50, cycle.l = c(75, 25), alpha = 1,
h.power = 1, c.power = 1, l.power = 1, cycle.h.power = 1,
cycle.c.power = 1, cycle.l.power = 0.5, terminate = TRUE,
cycle.right = TRUE, stepped = FALSE, fixup = FALSE)
|
n.cycles |
Numeric. Number of cycles, or bins. Default: |
cycle.lenth |
Integer. Number of colors per cycle or bin. Default: |
h |
Numeric. Hue (0 to 360); constant or 2-vector giving palette endpoints. Default:
|
c |
Numeric. Chroma (0 to ~100); constant or 2-vector giving palette endpoints. Default:
|
l |
Numeric. Lightness (0 to ~100); constant or 2-vector giving palette endpoints. Default:
|
cycle.h |
Numeric. Hue offset (0 to 360); constant or 2-vector giving cycle endpoints.
Default: |
cycle.c |
Numeric. Chroma; constant or 2-vector giving cycle endpoints. Default: |
cycle.l |
Numeric. Lightness; constant or 2-vector giving cycle endpoints. Default:
|
alpha |
Numeric. Opacity; constant. Default: |
h.power |
Numeric. Default: |
c.power |
Numeric. Default: |
l.power |
Numeric. Default: |
cycle.h.power |
Numeric. Default: |
cycle.c.power |
Numeric. Default: |
cycle.l.power |
Numeric. Default: |
terminate |
Logical. If TRUE the palette is closed (left and right closed) by
adding a single color at either the left or right end . If right = TRUE, then terminate = TRUE
adds a color before the first cycle. If right = FALSE, then terminate = TRUE adds a color after
the last cycle. If |
cycle.right |
Logical. If |
stepped |
Logical. Not used. Default: |
fixup |
Logical. Out-of-gammut colors are converted to valid RGB colors if |
cyclic_hcl()
constructs palettes combining end-to-end linear interpolation with cycles in hue
(H), lightness (L) and or chroma (C).
Palette characteristics:
perceptually linear H, C and L gradients
Stepped H, C and/or L, with perceptually linear gradients within each step
Good for data that combines cyclic and continuous aspects (like seasonal data), or for increased visual differentiation among levels.
Character vector. A vector of RGB colors specified as hex color codes (#RRGGBB).
1 2 3 | ## Palette with linear hue, cyclical lightness, constant chroma.
palette.linH.cycL <- cyclic_hcl()
colorbar(palette.linH.cycL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.