Published by the Foundation for Open Access Statistics Editors-in-chief: Bettina Grün, Torsten Hothorn, Rebecca Killick, Edzer Pebesma, Achim Zeileis    ISSN 1548-7660; CODEN JSSOBK
Authors: Nicholas E. Hamilton, Michael Ferry
Title: ggtern: Ternary Diagrams Using ggplot2
Abstract: This paper presents the ggtern package for R, which has been developed for the rendering of ternary diagrams. Based on the well-established ggplot2 package (Wickham 2009), the present package adopts the familiar and convenient programming syntax of its parent. We demonstrate that ggplot2 can be used as the basis for producing specialized plotting packages and, in the present case, a package has been developed specifically for the production of high quality ternary diagrams. In order to produce ggtern, it was necessary to overcome a number of design issues, such as finding a means to modify existing geometries designed for a 2D Cartesian coordinate system and permitting them to function in an environment that requires an additional spatial aesthetic mapping. In the present paper, we provide examples of this package in its most basic form followed by a demonstration of its ease of use, particularly if one is familiar with, and has a predilection towards using ggplot2 on a regular basis.

Page views:: 4127. Submitted: 2016-07-23. Published: 2018-12-20.
Paper: ggtern: Ternary Diagrams Using ggplot2     Download PDF (Downloads: 5399)
ggtern_3.1.0.tar.gz: R source package Download (Downloads: 148; 550KB)
v87c03.R: R replication code Download (Downloads: 167; 6KB)

DOI: 10.18637/jss.v087.c03

This work is licensed under the licenses
Paper: Creative Commons Attribution 3.0 Unported License
Code: GNU General Public License (at least one of version 2 or version 3) or a GPL-compatible license.