Closed KimJenkins closed 7 years ago
To make a graph in terms of elegance and simplicity, colors must adequately express the meaning of the graph itself, 8 colors I think are fair to do that work, so you should consider reducing the colors that You think necessary, maybe two colors will be enough, depending on what you want to express in your graphic.
ggthemr('fresh', layout = 'scientific', spacing = 2, type = 'inner')
ggplot(data=c1, aes(x=Var1, y=Freq)) +
geom_bar(stat="identity") +
ylab("Count") +
ggtitle("Cryo") +
theme(axis.text.x=element_text(angle=45,hjust=1,vjust=0.5))+
geom_text(aes(y=Freq, label = Freq), vjust=1.6, color="black", size=3.5)
Thanks @frahik. @KimJenkins If you do really need 16 colors in the plot, you need to define your own custom palette, as described here in the README.
I am trying to plot a bar plot with 16 bins. I am getting an error
Error: Your data requires 16 colours but the swatch provided by ggthemr only has 8. To resolve this you can provide an appropriate vector of colours to your scale or expand the swatch using set_swatch(). Note: if you are using a custom palette, the first swatch colour is separate from the others. See the documentation for define_palette() and/or set_swatch()
This is my code below
This is my dataset