Description Usage Arguments Value
Picks a starting hue for each level of the factor, then returns colors with that hue, but varying luminosity for each item within that factor.
1 2 | subcolor_pal(x, f, h = c(0, 360) + 15, c = 100, l = 65, l.range = 20,
h.start = 0, direction = 1, na.value = "grey")
|
x |
the vector or factor grouped by f (i.e. Genus) |
f |
the vector or factor that groups the values of x (i.e. Order) |
h |
the range of hues to use |
c |
chroma value to use |
l |
the base luminance [0,100] |
l.range |
the luminance above and below the base to use for subcolors |
h.start |
the starting hue |
direction |
1=clockwise, 0=counterclockwise around color wheel |
a list containing 'major': the base color for each level in f; and 'minor': the color for each item in x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.