ggthemes icon indicating copy to clipboard operation
ggthemes copied to clipboard

Not enogh colors on palette "gdocs"

Open agustinggza opened this issue 4 years ago • 1 comments

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 avatar Sep 09 '21 10:09 agustinggza

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_color_manual(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.

agustinggza avatar Sep 11 '21 09:09 agustinggza

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

jrnold avatar Feb 08 '24 23:02 jrnold