public class BoxPlot extends Plot
Boxplots can be useful to display differences between populations without making any assumptions of the underlying statistical distribution: they are non-parametric. The spacings between the different parts of the box help indicate the degree of dispersion (spread) and skewness in the data, and identify outliers.
For a data set, we construct a boxplot in the following manner:
| Constructor and Description |
|---|
BoxPlot(double[] data)
Constructor.
|
BoxPlot(double[][] data)
Constructor.
|
BoxPlot(java.lang.String[] description,
double[][] data)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getToolTip(double[] coord)
Returns a optional tool tip for the object at given coordinates.
|
void |
paint(Graphics g)
Draw the component with given graphics object.
|
static PlotCanvas |
plot(double[]... data)
Create a plot canvas with multiple box plots of given data.
|
static PlotCanvas |
plot(double[] data)
Create a plot canvas with the box plot of given data.
|
static PlotCanvas |
plot(double[][] data,
java.lang.String[] labels)
Create a plot canvas with multiple box plots of given data.
|
getID, getToolBar, setIDpublic BoxPlot(double[] data)
public BoxPlot(double[][] data)
data - the input dataset of which each row is a set of samples
and will have a corresponding box plot.public BoxPlot(java.lang.String[] description,
double[][] data)
data - the input dataset of which each row is a set of samples
and will have a corresponding box plot.public java.lang.String getToolTip(double[] coord)
PlotgetToolTip in class Plotcoord - the logical coordinates of current mouse position.public void paint(Graphics g)
Shapepublic static PlotCanvas plot(double[] data)
data - a sample set.public static PlotCanvas plot(double[]... data)
data - a data matrix of which each row will create a box plot.public static PlotCanvas plot(double[][] data, java.lang.String[] labels)
data - a data matrix of which each row will create a box plot.labels - the labels for each box plot.