thomasp85 / scico

Palettes for R based on the Scientific Colour-Maps
Other
411 stars 24 forks source link

deal with issues 2 and 3 #4

Closed m-clark closed 6 years ago

m-clark commented 6 years ago

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:

This 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.

thomasp85 commented 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🙂

tungttnguyen commented 5 years ago

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)