Package tech.tablesaw.plotly.api
Class TukeyMeanDifferencePlot
- java.lang.Object
-
- tech.tablesaw.plotly.api.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 Summary
Constructors Constructor Description TukeyMeanDifferencePlot()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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 intereststatic 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
-
-
-
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 plotmeasure
- The measure being compared on the plot (e.g "inches" or "height in inches"table
- The table containing the columns of interestcolumnName1
- The name of the first numeric column containing the data to plotcolumnName2
- 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 plotmeasure
- The measure being compared on the plot (e.g "inches" or "height in inches"xData
- The data to plot on the x AxisyData
- The data to plot on the y Axis- Returns:
- A quantile plot
-
-