user8491385
user8491385

Reputation: 453

GGPlots legend colors more clear

Is there any way I can make these colour more obvious in my geom_bar ggplot graph? In particular the blue / green ones. Also is there a way to have a white line/space between the colors as the top and bottom ones do?

enter image description here

Upvotes: 1

Views: 254

Answers (1)

Prradep
Prradep

Reputation: 5716

colour = "white" should help you differentiate the colours. If not, then increase size=2. For example:

library(vcd)
data(Arthritis)
ggplot(Arthritis, aes(x = Treatment, fill = Improved)) + 
  geom_bar(colour = "white", size=2)

enter image description here

Upvotes: 2

Related Questions