R ggplot barplot; Fill based on two separate variables

前端 未结 3 1894
挽巷
挽巷 2020-12-13 20:31

A picture says more than a thousand words. As you can see, my fill is based on the variable variable.

Within each bar there is however mul

3条回答
  •  渐次进展
    2020-12-13 20:39

    Adding alpha=complexity might work:

    ggplot(short.m, aes(x=Method, y= value/100 , fill=variable, alpha=complexity)) +
    geom_bar(stat="identity",position="dodge", colour="black") + coord_flip()
    

提交回复
热议问题