Skip to content

Add option to use exact palette colors#64

Merged
sbreitbart-NOAA merged 4 commits intomainfrom
interpolate-v-discrete
Jun 6, 2025
Merged

Add option to use exact palette colors#64
sbreitbart-NOAA merged 4 commits intomainfrom
interpolate-v-discrete

Conversation

@sbreitbart-NOAA
Copy link
Collaborator

@sbreitbart-NOAA sbreitbart-NOAA commented Jun 4, 2025

Add option to use specific colors from nmfspalette palettes, as opposed to the default behavior (interpolation), for scale_color_nmfs; update documentation

Inspiration/credit for the feature: #36

  • Draft feature for color
  • Draft feature for fill

…ed to the default behavior (interpolation), for scale_color_nmfs; update documentation
@sbreitbart-NOAA sbreitbart-NOAA linked an issue Jun 4, 2025 that may be closed by this pull request
@sbreitbart-NOAA
Copy link
Collaborator Author

@k-doering-NOAA Would you mind taking a look at this first draft? I've only provided the feature update for scale_color_nmfs so I can make sure it works as expected before moving onto scale_fill_nmfs.

@github-actions

This comment has been minimized.

Copy link
Contributor

@k-doering-NOAA k-doering-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this makes sense! I had one question about how it works.

And as a reminder - it would be a good to add a test (or more) to cover the new scenarios and make sure they work as we expect!

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 6, 2025

Code Metrics Report

Coverage Code to Test Ratio Test Execution Time
67.5% 1:0.2 4s

Code coverage of files in pull request scope (75.0%)

Files Coverage
R/ggplot2-scales.R 75.0%

Reported by octocov

@sbreitbart-NOAA sbreitbart-NOAA merged commit 98a774f into main Jun 6, 2025
12 checks passed
@sbreitbart-NOAA sbreitbart-NOAA deleted the interpolate-v-discrete branch July 1, 2025 19:47
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

Successfully merging this pull request may close these issues.

Discrete scales don't always use exact palette colors

2 participants