-
Notifications
You must be signed in to change notification settings - Fork 0
Home
This Mod for Spotfire® can be used to display a barycentric plot on three variables which sum to a constant. It graphically depicts the ratios of the three variables as positions in an equilateral triangle.
It is often used in physical chemistry, petrology, mineralogy, metallurgy, and other physical sciences to show the compositions of systems composed of three species.
- From this repository Releases section, locate and download the .mod file.
- Drag the .mod file into an analysis in Spotfire® Analyst.
For information on how to use and share visualizations mods, read the Spotfire® documentation.
- From this repository Releases section, locate and download the source code.
- Build the project in your preferred code editor. Microsoft Visual Studio Code is highly recommended.
- Open an analysis in Spotfire® and select Tools > Development > Create visualization mod from the menubar to connect to the project.
For information on how to get started with visualization mod development, read the Spotfire® documentation.
Every mod handles missing, corrupted and/or inconsistent data in different ways. It is advised to always review how the data is visualized.
To make the ternary plot work properly, the underlying data must be formatted in a certain way, with three numerical columns each representing different parts of a whole, per row.
The ternary plot assumes that values for each marker, across bottom (B), left (L) and right (R) axis are a share of something normalizable to a SUM of B + L + R = 100% and the coordinates will be normalized as such.
In this example dataset, we have four columns: Sample, Quartz, Felspar, Lithics
Sample | Quartz | Felspar | Lithics |
---|---|---|---|
Sample 1 | 100 | 0 | 0 |
Sample 2 | 20 | 50 | 30 |
Sample 3 | 40 | 20 | 40 |
Sample 4 | 10 | 40 | 50 |
Sample 5 | 0 | 100 | 0 |
Sample 6 | 10 | 0 | 90 |
Sample 7 | 33.3 | 33.3 | 33.3 |
Sample 8 | 60 | 15 | 25 |
In the ternary plot configuration in Spotfire, we would specify the 'Felspar' column as Bottom axis, 'Quartz' columns as Left axis and 'Lithics' column as Right axis. We can also use the 'Sample' column as our Color by axis.
Once the ternary plot has data provided, you can configure when to show or hide axis labels. The setting is accessed in Editing mode by clicking the settings button on the top right corner of the visualization.
The ternary plot supports marking data and filtering data. Clicking on a marker will mark it. The ternary plot also allows marking of multiple markers using rectangular marking; whilst holding down the mouse click and dragging the cursor across the chart, you can mark one or multiple markers.
To unmark all marked markers, just click the background of the visualization canvas area.
Copyright (c) 2023 Cloud Software Group, Inc. All Rights Reserved.