Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

begin and end ranges for palette #56

Open
dcooley opened this issue Oct 12, 2019 · 0 comments
Open

begin and end ranges for palette #56

dcooley opened this issue Oct 12, 2019 · 0 comments

Comments

@dcooley
Copy link
Collaborator

dcooley commented Oct 12, 2019

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, ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant