Closed m-clark closed 6 years ago
Thank you very much. Great work for a first PR. in the future you might consider splitting up PRs so they only tackle one issue each (when applicable). This is not a critique, but simply something to keep in mind for the next time🙂
Can you guys update the list of palettes available in the package now? Thank you all for your hard work!
library(scico)
scico_palette_show()
Created on 2018-10-14 by the reprex package (v0.2.1.9000)
Howdy! I've been using this package quite a bit, and kept coming across the discrete scale issue (issue #2), so I thought I'd take a whack at it. I basically just did the same thing as
scale_color/fill_viridis_d
that's already part of ggplot. Not sure if that's the route you'd want to take, but it appears to work just fine. While I was at it, I figured I'd add the new palettes as well (issue #3). Some things to note:scale_colour_scico_d/scale_color_scico_d/scale_fill_scico_d
palettes.rda
testthat
tests for both color and fill discretegoodpractice::gp()
scico_palette_data/_show
work with new palettesggplot2-scales
man page for the discrete caseThis is my first stab at a fork and pull for something that wasn't a project I was involved with from the beginning, so if there is anything in particular you need done differently just let me know and I can try and work it out. Thanks again for offering this, and all of your other useful packages. Hopefully this saves you a little effort.