Piper Diagram
The piper diagram is a popular representation of the major ion composition. It consists of two trilinear plots for the major cations (left) and anions (right) and a diamond shaped projection area between the two triangles.
Required Parameters
The Piper plot requires that the cations calcium, magnesium, sodium, anions chloride, sulfate, and alkalinity or bicarbonate are available in the dataset and correctly mapped in the fields section of the Data
tab.
Plot Settings
This tab allows overwriting the automatically generated plot settings for the map diagram. The form is divided into the following sections:
Plot Properties
In the plot properties sections, you may define the following parameters:
Plot Title: Allows setting a title for the plot. If no title is required, the field can be left empty. For grouped plots, the user may include the group-legend-by
-parameter-name in curly braces. For each plot, this expression will be replaced by the code for which the plot uses the data.
Plot Title Font Size: Size of title font in em (1em = 2in).
Plot Title Alignment: Define whether the title should be left-, center- or right-aligned.
Group plots by: If your data contains strings or integer values with a limited number of distinct values, you may group the plots by such a field (e.g., station, geology, year, etc.). One plot will be created for each distinct value in the selected data column.
Group Legend by: Define the field that would be used to appear in the legend with distinct markers. For example, if you select the station column in the demo dataset, each station will be represented with a distinct marker.
Plot Width: Width of plot in points.
Show Grid: Show or hide the grid lines. Grid lines can be hidden if the target diagram is small. | Show Tick Labels: Show or hide the tick labels. Tick labels may be hidden if the target diagram is small.
Tick Label Font Size: Select a larger font in points if the diagram needs to be scaled down.
Axis Label Font Size: Select a larger font in points if the diagram needs to be scaled down.
Image Output Format Select png for a bitmap format and SVG for a vectorized output. The SVG format is scaleable but is not as widely supported as the png format.
Note that plot by and legend by grouping can be used in combination, but different fields should be applied to each grouping. When using the same group field, each plot will contain only one marker.
Marker Properties
Markers are defined by the basic properties of type (circle, square, triangle, etc.), color, and size.
Marker Size: size of the marker in points. All markers have the same size.
Marker Color Palette:: Colors are assigned to markers through color palettes containing a list of colors. Fontus uses the palettes of the Bokeh graphic library, used to render the Piper diagram. After selecting a palette, the selected palette is previewed below the selectbox.
Number of Colors:: Most palettes include 11 or more colors. If marker colors are generated by cycling through the palette, fewer colors may be more convenient. The field Number of Colors
can be used to limit the number of colors used from the defined palette.
Default Color: If the user does not select a Group Legend By
option, all data points are rendered using the same marker. Fontus uses the first marker type for the used symbol and the Default Color
for the color of the default marker.
Marker Generator Algorithm:: When selecting the Group Legend By
option, markers are generated automatically by alternating the symbol and/or colors of each marker. The user may choose between three generators:
- Cycle through marker types (circle, square, etc.) first using the first color of the palette. When the last symbol type is reached, use the next color and restart from the first marker type.
- Cycle through color type first using the first marker type of the marker-type list. When the last color is reached, use the next marker type and restart from the first color.
- Cycle through color and marker types simultaneously. The number of marker types and colors should be equal. Make sure, for this mode, that there are no more codes to be represented than color/marker types available, as otherwise, there will be identical markers for different codes.
Tooltips
When hovering over points on the plot, a tooltip will show information about the selected point. In this section, the user can define which fields to display in the tooltip box. For major ions, the user can specify whether values should be listed as mg/L (original concentration from the data file), meq/L, or meq%. Values expressed in meq% are smaller than mg/L-concentrations. Therefore the user may also specify the number of digits used for major ions concentrations.
Legend
The legend properties allow to specify the Legend appearing on the Piper plot:
Legend Location:: Location where legend will show on the plot. Border Line Width:: Width of borderline around the legend. Border-Line Color:: Color of the borderline around the legend. Border-Line Opacity:: Opacity of the border line: 0 = transparent, 1 = opaque. Background Fill Color:: Background color of the box holding the legend. Background Fill Opacity:: Opacity of the box holding the legend text.
Proportional Marker Size or Color
The marker of the diamond shaped projection area may be specified to be proportional in size or color in respect to a specified numeric parameter. Often Total dissolved solids (TDS) or electrical conductivy (Cond) are used for this purpose, to compensate for the dimension of total concentrations, lost in the trilinear representation. Examples for each method are shown below.
Parameter:: Parameter used for marker size or color calculation. Minimum Value:: All values for the selected parameter equal or smaller than the minimum value will either be displayed with the minimum radius or the first color in the selected color palette. Maximum Value:: All values for the selected parameter equal or greater than the maximum value will either be displayed with the maximum radius or the first color in the selected color palette.
Method:: Marker size method generates symbol sizes proportional to the value of the specified parameter. The marker color method adjusts the marker fill color proportional to the the value of the specified parameter. Some input parameters vary as a function of the selected method:
-
Proportional Size method:
Minimum Size:: Marker size for the values equal or smaller than the minimum value Maximum Size:: Marker size for the values equal or greater than the maximum value.
-
Proportional Color method:
Color Palette:: Select on of the available 256-colors-palettes. Values equal or smaller thatn the minimum value will filled with the first color in this palette, colors equal or greater than the maximum value with take the last color and for values between the minimum and maximum value a color index between 1 and 256 will be calculated.