jrnold / ggthemes

Additional themes, scales, and geoms for ggplot2
http://jrnold.github.io/ggthemes/
1.31k stars 229 forks source link

Not enogh colors on palette "gdocs" #133

Closed agustinggza closed 7 months ago

agustinggza commented 3 years ago

Hi. Thank you very much for your package. I am using the gdocs palette (which has 20 colors) to make a graph of 19 lines, like this " + scale_colour_gdocs() " but it only draws me 10 (I guess that's the default number). How can I get it to draw 19 lines? Thank you

agustinggza commented 2 years ago

I answer to myself. The solution is to take the original palette (which was 20 colors, now 10) and create a manual palette like this:

_scale_colormanual(values=c("#3366CC", "#DC3912","#FF9900", "#109618", "#990099", "#0099C6","#DD4477", "#66AA00", "#B82E2E", "#316395","#994499", "#22AA99", "#AAAA11", "#6633CC","#E67300", "#8B0707", "#651067", "#329262","#5574A6", "#3B3EAC")) # escala manual que corresponde a 20 colores

Your package is very useful. Thank you so much.

jrnold commented 7 months ago

Updated colors and extended the scale to include 24 colors in #db58832e353a8fc4c386dbbaec0002a9f3153b0c