SymbolixAU / colourvalues

R library for assigning colours to values
https://symbolixau.github.io/colourvalues/
46 stars 6 forks source link

begin and end ranges for palette #56

Open dcooley opened 5 years ago

dcooley commented 5 years ago

Add arguments to specify the range of the palette you want to use

For example

colour_values( 1:256, begin = 0.0, end = 0.75 )

will only use rows 1 to 192 (256 * 0.75) of the palette

similar to doing

pal <- colourvalues::get_palette( "viridis" )[1:192, ]