AddPiperClassGraph Method

The AddPiperClassGraph method creates a new piper class diagram. Returns an AutoGraph object.

Syntax

object.AddPiperClassGraph( worksheet, xCationCol, yCationCol, zCationCol, xAnionCol, yAnionCol, zAnionCol, classCol, id )

 

Parameter Type Description
worksheet String required, data's full path and file name
xCationCol Variant optional, default = 1 (column A)
yCationCol Variant optional, default = 2 (column B)
zCationCol Variant optional, default = 3 (column C)
xAnionCol Variant optional, default = 4 (column D)
yAnionCol Variant optional, default = 5 (column E)
zAnionCol Variant optional, default = 6 (column F)
classCol Variant optional, default = 7 (column G)
id Variant optional, graph name

 

Remarks

The AddPiperClassGraph method creates a piper class diagram, which consists of three ternary class plots: cation, anion, and diamond. The example shows how to set the references to the AutoTernaryClassPlot objects.

Example

This example shows how to create a piper diagram and set the references to the component plots.

'Create Piper reference

Dim PiperClass as Object

 

'Create the piper diagram and set the reference

Set PiperClass = Shapes.AddPiperClassGraph(GrapherApp.Path + "\samples\piper.dat",3,2,4,6,7,5,1)

 

'Set the Cation plot reference

Dim Cation as Object

Set Cation = PiperClass.Plots.Item(1)

 

'Set the Anion plot reference

Dim Anion as Object

Set Anion = PiperClass.Plots.Item(2)

 

'Set the Diamond plot reference

Dim Diamond as Object

Set Diamond = PiperClass.Plots.Item(3)

 

Used by: AutoShapes collection