I followed the link to the NOAA Fisheries Branding guide to view colors and get color names for a presentation I am working on. Currently the names between the branding guilde don't always match up with the names in nmfspalette. For example, the nmfspalette color, reflexblue is now called NOAA SKY.
Possible solutions:
- Create a lookup table that matches the NOAA brand name to nmfspalette name so older code using the original names still work. This might be a good option if the NOAA brand names are frequently updated.
- Update the nmfspalette names but include code that converts the old name to the new name. The code could possibly throw a deprecated warning as well.
I think it would also be useful to add a get_nmfs_colors() function that returns all nmfspalette color names with their hex code. Also, a display_nmfs_color() function could return scales::show_col(nmfs_cols("name")) to plot individual colos.
I'd be happy to work on this and develop a PR with changes. I have free time in about a month.
I followed the link to the NOAA Fisheries Branding guide to view colors and get color names for a presentation I am working on. Currently the names between the branding guilde don't always match up with the names in nmfspalette. For example, the nmfspalette color,
reflexblueis now calledNOAA SKY.Possible solutions:
I think it would also be useful to add a
get_nmfs_colors()function that returns all nmfspalette color names with their hex code. Also, adisplay_nmfs_color()function could returnscales::show_col(nmfs_cols("name"))to plot individual colos.I'd be happy to work on this and develop a PR with changes. I have free time in about a month.