OriginLab Corporation - Data Analysis and Graphing Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis                     
 
Skip Navigation Links
All BooksExpand All Books
TutorialsExpand Tutorials
GraphingExpand Graphing

6.16 Piper Diagram


Summary

Piper diagram (or Trilinear diagram) is used as an effective graphical representation of chemistry in water samples in hydro-geological studies. The percentage values of six ion groups are considered in the plot, they are calcium, magnesium and sodium plus potassium cations, and sulfate, chloride and carbonate plus hydrogen carbonate anions.

The cations and anions are shown by two separate ternary plots and both are then projected onto a rhomb. In Origin they are plotted as a three layer graph.

Tutorial Piper 01.png

Minimum Origin Version Required: 9.1 SR0

What will you learn

This tutorial will show you how to:

  • create a piper plot from percentage data
  • customize the gap between ternary and rhomb in piper graph
  • add data labels in the piper plot


Steps

  1. Start a new workbook and click the Button Import Single ASCII.png button to import the file Piper.dat under <Origin EXE Folder>\Samples\Graphing path.
  2. In the imported worksheet, column A is the Sample ID. Column B through G are the percentage values for the six ion groups in the order of Ca, Mg, Na+K, Cl, SO4, and CO3+HCO3. column H is the amount of total dissolved solids in water. The percentage for cation groups is relative to the total amount of cations and that of anion groups is calculated by the same manner.
    Note: We have some built-in workbook templates to help you convert data from different units (MEq/mgL/PPM) to percentage (open from File:New:From Template:). For details, please refer to this help file.
  3. Highlight column B through G and select Plot:Specialized:Piper from the top menu to open the plotpiper dialog.
  4. Select column A for Sample ID and column H for Total Dissolved Solids.
    Tutorial Piper 02.png
    Note: You can select an existing piper diagram as the Output Graph and add the selected new data into this piper diagram.
  5. Click OK to generate the piper plot:
    Tutorial Piper 03.png
    Sample ID and TDS are optional when plotting piper diagram. If Sample ID is specified, symbol color and shape will be controlled by it. If TDS is specified, open circle in the rhomb (Layer 1) will show and the size will be controlled by it. Also Piper diagram shows each sample in legend.

More Customization Steps

The following steps can further customize the graph to be exactly the same as the image in Summary.

  1. To change the gap between the ternary plots and the rhomb, double click the bottom left ternary to open the Plot Details dialog. On the left panel, select Layer 2. On Size/Speed tab, change the Left value to be 130, so that the distance between the top vertex of rhomb and the top vertex of the ternary in Layer 2 will be 130% of the side length of rhomb. Click Apply button.
    Tutorial Piper 04.png
  2. To change the symbol color or shape increment list, select the data plot under Layer 1 node on the left panel. Then go to the Color List or Shape List tab to customize them.
    Tutorial Piper 05.png
  3. To add Sample ID as data label in the rhomb, Select 1st data plot under Layer 1 node on the left panel. Go to Label tab and set as follows:
    Tutorial Piper 06.png
    To add data labels to two ternaries in the graph, please select plot under Layer2 and Layer3 nodes in the Plot Details dialog and do the same.
  4. The 2nd data plot under Layer1 node in the Plot Details dialog is the open circle for TDS. Select the data plot on left panel and select the Symbol tab. You can see the Size of the open circle is controlled by Col(H). The Scaling Factor is auto determined to get a proper display. Change the Scaling Factor to 0.03 to see the change.
  5. By default Sample ID shows in legend. To show sampling location's information in legend, right click on the legend and select Legend:Point by Point... to open the Update Legend Point by Point dialog. Select Custom for the Label Form drop-down list and then select wcol(1): wcol(9) from the menu. wcol(9) refers to the 9th's column in worksheet, which is the Sampling Location column.
    Tutorial Piper 07.png
 

© OriginLab Corporation. All rights reserved.