I want to plot a stacked bar plot with error bars. I have a data frame with five variables. Var1 contains the effects of treatments on three different species in Var2
. The effects of treatments are given in variable value
. Variable start
and end
contains the values for error bars. I want to plot a stacked bar plot in a way that orders of Var1 and Var2 should be same. Something like this:
This figure is just an example. Some example data:
Var1 Var2 value start end
Eff1 spe1 0.73 0.72 0.74
Eff2 spe1 0.25 0.24 0.26
Eff3 spe1 0.007 0.006 0.008
Eff1 spe2 0.69 0.68 0.7
Eff2 spe2 0 0 0
Eff3 spe2 0.3 0.29 0.31
Eff1 spe3 0.78 0.77 0.79
Eff2 spe3 0 0 0
Eff3 spe3 0.212 0.2 0.22
The values in table does not match to the figure above. Thank you for the suggestions.
dodge
so they wont evoerlap – David Arenburg