getContinuousColors | R Documentation |
Use circlize::colorRamp2 to do the linear interplotation Use wasanderson::was_palette to generate the explict colors needed, which could be replaced in the future with other more common packages.
getContinuousColors(b = 0, e = 1, n = 50, pal = "Zissou1", type = "continuous")
b |
numeric, region start, 0 as default |
e |
numeric, region end, 1 as default |
n |
integer, number of intervals for explicit color points withn b, e |
pal |
characters, color palette, "Zissou1" as default |
type |
characters, parameter for wesanderson pacakge, "continuous" as default |
function, f(value within b, e) will return a color
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.