2021年3月8日星期一

ggplot: how to plot a stack bar plot with dodge position

I have a dataset like:

region country urban_rural treatment      potential  ----------------------------------------------------  Africa  Kenya     1         chlorine       compatible  Europe  England   2         non_clorine    not compatible  Africa  Kenya     1         other          potential  

And I want to make a figure like : enter image description here

can anyone help with this?

https://stackoverflow.com/questions/66539374/ggplot-how-to-plot-a-stack-bar-plot-with-dodge-position March 09, 2021 at 09:06AM

没有评论:

发表评论