Hello,
I am struggling to make a bar plot with scatter points. My use case has a dataframe with three columns: X,Y,Z Columns X and Y are categorical, while column Z is float. For any combination of X and Y there are multiple Z values. I want to compute mean and std of Z for every X/Y combination and plot a bar chart with mean and std as error. This will be like side-by-sde grouped bar plots for all Y in any given X. After that I want to make a scatter plot with Z values for every X/Y centered over their respective bar plots. I also want to color the bar plots by Y value. The x-axis ticktext should be X values, one for each set of grouped bars. An example data may look like (there is no option to attached a file):
Y,Z,X
Vehicle,0.959220707,Brainstem
Vehicle,0.965248492,Brainstem
Vehicle,1.07371179,Brainstem
A2001,0.620079918,Caudate
A2001,0.623324208,Caudate
A2001,0.573775718,Caudate
A3001,0.719787854,Caudate
A3001,0.797395638,Caudate
A3001,0.794157747,Caudate
Any help will be greatly appreciated.
Abhinav