StatBean Name: ProbabilityPlot

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

DataSource: Any.


Read/Write Properties
NameTypeDescriptionPossible ValuesDefault Value
distributionStringType of distribution for which plot is constructed."Exponential",
"Extreme Value",
"Logistic",
"Lognormal",
"Normal",
"Uniform",
"Weibull"
"Normal"
drawLinebooleanWhether to add a line to the plot.true,falsetrue
drawVerticalbooleanWhether to plot the percentages on the vertical axis.true,falsetrue
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.""

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
ProbabilityPlot probabilityplot1 = new STATBEANS.ProbabilityPlot();

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

//define the plot type
probabilityplot1.setDistribution("Normal");

//show the plot
add(probabilityplot1);

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

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