I have a bar chart and I want to add a error bar. But I dont know how to do that.
I have added my data set and this is my bar chart:
scaleSelection = strcmp(scale,'like');
barData = meanVariantsVelocity(scaleSelection);
bh = bar(barData);
bh.FaceColor = 'flat';
velocitySelection = velocity == 50;
velocityBarIdx = ismember(find(scaleSelection), find(velocitySelection));
barColors = [0 0 1; 1 0 1];
cmap = barColors(velocityBarIdx+1,:);
bh.CData = cmap;
[vgroup, vg] = findgroups (clean_ds.variants);
title = ('like');
ax = bh.Parent;
ax.XTick = 1:numel(barData);
ax.XTickLabel = vg;
ax.TickLabelInterpreter = 'none';
my title is also not working.
Do you guys can help me?