Here is my toy example:
yvalue = c(.1, .2, .3, .2, .1, .2, .3, .1)
df = data.frame(yvalue)
df$name = c("a", "b", "c", "d", "e", "f", "g", "h")
df$type = c("apple", "apple", "apple", "apple", "apple", "banana", "banana", "banana")
ggplot(data = df) + geom_bar(aes(y = yvalue, x=type, fill=name), stat = "identity", position = position_dodge())
This arrangement is basically what I want, but I'd like to do three things here that I have no clue how to do:
- make all the bars the same color
- remove the legend
- make all the bars the same width
Thanks!