geom_bar define border color with different fill colors

后端 未结 1 1320
遥遥无期
遥遥无期 2021-02-02 12:10

I want to draw a bar plot with geom_bar where I want unique fill colors surrounded by a black border. However the instruction color=\"black\" is not i

相关标签:
1条回答
  • 2021-02-02 12:41

    You have to put colour outside aes:

    ggplot(test) + geom_bar(aes(x=a, y=b, fill=c), colour="black", stat="identity")
    

    enter image description here

    0 讨论(0)
提交回复
热议问题