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

add color hex code labels to bi_pal() #45

Open
torreyma opened this issue Apr 25, 2024 · 0 comments
Open

add color hex code labels to bi_pal() #45

torreyma opened this issue Apr 25, 2024 · 0 comments

Comments

@torreyma
Copy link

When running bi_pal() to check my palette, it would be helpful to have an option to see the color hex codes printed on top of the palette tiles, like this:
custom_pal3.plot_biscale_palette.pdf

Describe the solution you'd like
I think this is pretty easy to implement. Just add a boolean on/off switch to bi_pal() and then a line like:
ggplot2::geom_text(data = leg, ggplot2::aes(x = x, y = y, label = bi_fill)) +
to the ggplot call in bi_legend_build().

Describe alternatives you've considered
I implemented this as standalone code. I can't think of a reason it shouldn't be part of the biscale package itself. But maybe I'm missing something?

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