A free Java Ternary plot which is the way to classify igneous or/and sedimentary rocks. The ternary diagrams are used to represent the relative percentages of any three component system as A, B, and C.