%Normal probability plot
hold off
%Beräknade effekter
lx = [-1.26 -0.97 -0.95 -0.70 -0.64 -0.54 -0.48 -0.32 -0.11 0.28 0.65 1.01 1.45 1.51 2.80]

%figure;
h=normplot(lx)
%get handle to point plot
point_plot = h(1)
%retreive y-values of points
yval = get(point_plot, 'YData')

xlabel('Effekt')
ylabel('Sannolikhet')
title('Normalfördelningsplot')

efflist = {'AE', 'DE', 'BE', 'CD', 'D', 'CE', 'B', 'BC', 'E', 'AB', 'BD', 'C', 'AC', 'AD', 'A'};

i = 1;
for eff = lx
    Pi = ((i-0.5)/15);
    
    text(eff, yval(i)+0.1, efflist(i));
    
    i = i + 1;
end


