getContinuousColors: Get continous color with linear interplotation

View source: R/color.R

getContinuousColorsR Documentation

Get continous color with linear interplotation

Description

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.

Usage

getContinuousColors(b = 0, e = 1, n = 50, pal = "Zissou1", type = "continuous")

Arguments

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

Value

function, f(value within b, e) will return a color


beyondpie/pureRUtils documentation built on Jan. 10, 2023, 3:22 a.m.