StatBean Name: QuantileQuantilePlot

Purpose: Displays scatterplot of quantiles for two numeric columns.

DataSource: any.


Read/Write Properties
NameTypeDescriptionPossible ValuesDefault Value
tablewiseExclusionbooleanWhether all rows of the data table containing a missing value in any column should be excluded from the plot.true,falsefalse
xVariableNameStringThe name of the column with data values to be plotted on the horizontal axis.Any string."X"
yVariableNameStringThe name of the column with data values to be plotted on the vertical axis.Any string."Y"

Other properties are inherited from the java.awt.Canvas class and from the general GraphicalStatbean class.

Code Sample

//create a datasource bean
FileDataSource fileDataSource1 = new STATBEANS.FileDataSource();

//set the file name to be read
fileDataSource1.setFileName("c:\\statbeans\\samples\\twosam.txt");

//create a plot bean
QuantileQuantilePlot qQPlot1 = new STATBEANS.QuantileQuantilePlot();
qQPlot1.setBackground(Color.yellow);

//set the columns for the x and y axes
qQPlot1.setXVariableName("Process A");
qQPlot1.setYVariableName("Process B");

//add the plot to the application frame
add(qQPlot1);

//make the plot a listener for changes in the FileDataSource bean
fileDataSource1.addDataChangeListener(qQPlot1.listenerForDataChange);

//instruct the fileDataSource bean to read the file
fileDataSource1.readData();