erikhuizinga / Bland-Altman-Analysis

A MATLAB function for Bland-Altman Analysis of agreement between measurement methods.
5 stars 3 forks source link

Support for axes specification in graphics Name-Value pair arguments #9

Open erikhuizinga opened 8 years ago

erikhuizinga commented 8 years ago

When specifying multiple graphs to be constructed and providing an array of handles to figures or axes, the user currently must know the order in which these handles are used for the graphics (in private/validatePlotArgs.m):

  1. correlation graph
  2. mean-difference graph
  3. mean-standard deviation graph
  4. mean-ratio graph

This should be user-configurable via the Name-Value pair arguments.

Desired user syntax (for example):

ba(axOther,x,y,'PlotMeanDifference',axMD,'PlotCorrelation',true,'PlotMeanRatio',true)

In this case the function should first check for graphics handles in de Name-Value pair arguments (axMD), then validate them. The rest of the provided handles (axOther) and requested graphs (mean-ratio and correlation) are then processed using the current method, i.e. ordered as above.