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?
Asked
Active
Viewed 242 times
1

Prradep
- 5,506
- 5
- 43
- 84

user8491385
- 413
- 1
- 5
- 17
-
You could try another palette using for example [ggthemr](https://github.com/cttobin/ggthemr) – larsen Sep 26 '17 at 07:35
-
For white line, try adding `colour = "white"` inside your `geom_bar()`? – Z.Lin Sep 26 '17 at 08:53
-
geom_bar (colour = "white") doesn't work – user8491385 Sep 26 '17 at 09:06
-
Please provide a [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example). What you have tried so far? – Prradep Sep 26 '17 at 11:29
1 Answers
2
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)

Prradep
- 5,506
- 5
- 43
- 84