StatBean Name: QuantilePlot

Purpose: Creates a quantile plot for a single column of numeric data.

DataSource: Any.


Read/Write Properties
NameTypeDescriptionPossible ValuesDefault Value
columnNamesString arrayThe names of the columns (if more than one) to be analyzed.One or more strings.{""}
drawNormalCurvebooleanWhether to add the best-fitting normal distribution.true,falsefalse
drawVerticalbooleanWhether to plot the percentages on the vertical axis.true,falsetrue
resolutionintFor continuous distributions, the number of points at which the function is calculated.50+500
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 (if only one) with data values to be plotted on the horizontal axis.Any string.""

Code Sample

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

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

//create a chart bean
QuantilePlot quantileplot1 = new STATBEANS.QuantilePlot();

//set the column to be plotted
quantileplot1.setXVariableName("strength");

//add a normal curve
quantileplot1.setDrawNormalCurve(true);

//show the plot
add(quantileplot1);

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

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