Class TukeyMeanDifferencePlot


  • public class TukeyMeanDifferencePlot
    extends Object
    A Tukey Mean-Difference Plot (AKA a Bland-Altman plot) is a kind of scatter plot used frequently in medicine, biology and other fields, is used to visualize the differences between two quantitative measurements. In particular, it is often used to evaluate whether two tests produce 'the same' result.

    For two numeric arrays, a and b, the plot shows the mean for each pair of observations (a + b) / 2, as well as the differences between them: a - b.

    For more information: https://en.wikipedia.org/wiki/Bland%E2%80%93Altman_plot

    • Constructor Detail

      • TukeyMeanDifferencePlot

        public TukeyMeanDifferencePlot()
    • Method Detail

      • create

        public static Figure create​(String title,
                                    String measure,
                                    tech.tablesaw.api.Table table,
                                    String columnName1,
                                    String columnName2)
        Returns a figure containing a Tukey Mean-Difference Plot describing the differences between the data in two columns of interest
        Parameters:
        title - A title for the plot
        measure - The measure being compared on the plot (e.g "inches" or "height in inches"
        table - The table containing the columns of interest
        columnName1 - The name of the first numeric column containing the data to plot
        columnName2 - The name of the second numeric column containing the data to plot
        Returns:
        A quantile plot
      • create

        public static Figure create​(String title,
                                    String measure,
                                    double[] xData,
                                    double[] yData)
        Returns a figure containing a QQ Plot describing the differences between the distribution of values in the columns of interest
        Parameters:
        title - A title for the plot
        measure - The measure being compared on the plot (e.g "inches" or "height in inches"
        xData - The data to plot on the x Axis
        yData - The data to plot on the y Axis
        Returns:
        A quantile plot