DraftsmansPlot STATBEAN®

 

Purpose: - 3D scatter plot software that displays a top, front and side view of a 3D scatterplot. Allows Statgraphics to function as 3D plotting software.

3D Scatter Plot Software DataSource: Any. 

draftsmansplot


3D Plotting Software Read/Write Properties
Name Type Description Possible Values Default Value
gap double The proportion of the plotting space left blank around each side of the cells of the plot. 0.0-0.25 0.1
missingValueExclusion String The method for handling records which contain missing values. "Columnwise","Casewise",
"Tablewise"
"Columnwise"
smootherColor Color Color for drawing the smooth. Any valid color. Color.blue
smootherPercentage int Width of the smoother as a percentage of the number of observations. 1-99 50
smootherType String Type of smoother, if any, to be added to the plot. "None",
"Running Means",
"Running Lines",
"LOWESS",
"Robust LOWESS"
"None"
xVariableName String The name of the column with data values to be plotted on the X axis. Any string. "X"
yVariableName String The name of the column with data values to be plotted on the Y axis. Any string. "Y"
zVariableName String The name of the column with data values to be plotted on the Z axis. Any string. "Z"

Other properties for this 3D scatter plot software are inherited from the java.awt.Canvas class and from the general GraphicalStatbean class.

3D Plotting Software Code Sample

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

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

//create a plot bean 
DraftsmansPlot draftsmansPlot1 = new STATBEANS.DraftsmansPlot(); 

//set the columns names 
draftsmansPlot1.setXVariableName("weight"); 
draftsmansPlot1.setYVariableName("horsepower"); 
draftsmansPlot1.setZVariableName("mpg"); 

//set smoother type 
draftsmansPlot1.setSmootherType("Robust Lowess"); 

//add plot 
add(draftsmansPlot1); 

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

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