Hi,
I would like to create a plot similar to the one inserted below (see black and white figure). In my attempts at reproducing the plot the datapoints are too close together along the Yaxis (see colored figure inserted below). Would anyone be able to point me into the right direction for solving this? I would be extrmeely grateful!
For reference, this is the code I am using for the plot:
figure% Model{x} the result of a regression model
h = plot(Model{1}.Coefficients.Estimate(2), 1, '*')hc = h.Color;sd_vct = Model{1}.coefCI;errorbar(Model{1}.Coefficients.Estimate(2),1,sd_vct(2,1), 'horizontal','color', hc); xlim([-0.5 0.5])% set(gca,'ytick',linspace(0,147,13))
hold onfor k = [1:147]; % 1:147;
h = plot(Model{k}.Coefficients.Estimate(2), k, '*') % spaceInPlot(k)
hc = h.Color;sd_vct = Model{k}.coefCI;errorbar(Model{k}.Coefficients.Estimate(2),k,sd_vct(2,1), 'horizontal','color', hc);endhold off
Best Answer