|
452 | 452 |
|
453 | 453 | % Plot graph of the difference in bootfun for each comparison with 95% confidence intervals
|
454 | 454 | figure;
|
455 |
| - nc = size(c,1); % Calculate number of comparisons to plot |
456 |
| - plot([0;0],[0;nc+1]','k:'); % Plot vertical dashed line at 0 effect |
457 |
| - set(gca,'Ydir','reverse') % Flip y-axis direction |
458 |
| - ylim([0.5,nc+0.5]); % Set y-axis limits |
459 |
| - hold on % Enable plotting new data on the same axis |
| 455 | + nc = size(c,1); % Calculate number of comparisons to plot |
| 456 | + plot([0;0],[0;nc+1]','k:'); % Plot vertical dashed line at 0 effect |
| 457 | + set(gca,'Ydir','reverse') % Flip y-axis direction |
| 458 | + ylim([0.5,nc+0.5]); % Set y-axis limits |
| 459 | + hold on % Enable plotting new data on the same axis |
460 | 460 | for i=1:nc
|
461 | 461 | if c(i,7) < 0.05
|
462 |
| - plot(c(i,5),i,'or','MarkerFace','r') % Plot marker for the difference in bootfun |
463 |
| - plot([c(i,8),c(i,9)],i*ones(2,1),'r-') % Plot line for each confidence interval |
| 462 | + plot(c(i,5),i,'or','MarkerFaceColor','r') % Plot marker for the difference in bootfun |
| 463 | + plot([c(i,8),c(i,9)],i*ones(2,1),'r-') % Plot line for each confidence interval |
464 | 464 | else
|
465 |
| - plot(c(i,5),i,'ob','MarkerFace','b') % Plot marker for the difference in bootfun |
466 |
| - plot([c(i,8),c(i,9)],i*ones(2,1),'b-') % Plot line for each confidence interval |
| 465 | + plot(c(i,5),i,'ob','MarkerFaceColor','b') % Plot marker for the difference in bootfun |
| 466 | + plot([c(i,8),c(i,9)],i*ones(2,1),'b-') % Plot line for each confidence interval |
467 | 467 | end
|
468 | 468 | end
|
469 | 469 | hold off
|
|
0 commit comments