nanxstats / ggsci

🦄 Scientific journal and sci-fi themed color palettes for ggplot2
https://nanx.me/ggsci/
GNU General Public License v3.0
661 stars 71 forks source link

Manually re-order palette #22

Closed flottsam closed 1 year ago

flottsam commented 1 year ago

This is a feature request. Is it possible to manually re-order the color palettes? For example, I would like the colors of scale_color_tron to be red, yellow, blue, green.. Great package, BTW.

nanxstats commented 1 year ago

@flottsam Excellent question, please see the new section in the FAQ vignette for a generic solution: https://nanx.me/ggsci/articles/ggsci-faq.html#customize-color-ordering-in-a-palette