R: An Extension to 'ggplot2', for the Creation of Ternary Diagrams

# An Extension to 'ggplot2', for the Creation of Ternary Diagrams

## Documentation for package ‘ggtern’ version 4.0.0

- DESCRIPTION file
- Code demos. Use demo() to run them.
- Package NEWS
- Package README

## Help Pages

A B C D E F G L M P R S T U W X Z misc

ggtern-package | Ternary Diagrams in R

## -- A --

aes | Modified Aesthetic Mappings
annotate | Create an annotation layer (ggtern version).
annotation_raster_tern | Annotation: High-performance rectangular tiling (ggtern version)
approved_geom | Approved Geoms, Stats and Positions
approved_layers | Approved Geoms, Stats and Positions
approved_position | Approved Geoms, Stats and Positions
approved_stat | Approved Geoms, Stats and Positions
arrangeGrob | Arrange multiple grobs on a page (ggtern version)
atomic_percent | Atomic, Weight or Custom Percentage Suffix

## -- B --

breaks_tern | Generate Axis Breaks

## -- C --

clipPolygons | Depreciated Functions
constructor | ggtern Constructor
convenience_functions | Theme Convenience Functions
CoordTern | Ternary Coordinate System
coord_tern | Ternary Coordinate System
custom_percent | Atomic, Weight or Custom Percentage Suffix

## -- D --

data_Feldspar | Elkin and Groves Feldspar Data
data_Fragments | Grantham and Valbel Rock Fragment Data
data_SkyeLava | Aichisons Skye Lavas
data_USDA | USDA Textural Classification Data
data_WhiteCells | Aichisons White Cells
draw_key_crosshair_tern | Key drawing functions
draw_key_Liso | Key drawing functions
draw_key_Lline | Key drawing functions
draw_key_Lmark | Key drawing functions
draw_key_point_swap | Key drawing functions
draw_key_Riso | Key drawing functions
draw_key_Rline | Key drawing functions
draw_key_Rmark | Key drawing functions
draw_key_tern | Key drawing functions
draw_key_Tiso | Key drawing functions
draw_key_Tline | Key drawing functions
draw_key_Tmark | Key drawing functions

## -- E --

element_ternary | Depreciated Functions

## -- F --

Feldspar | Elkin and Groves Feldspar Data
FeldsparRaster | Elkin and Groves Feldspar Data
Fragments | Grantham and Valbel Rock Fragment Data

## -- G --

GeomConfidenceTern | Confidence Interval
GeomCrosshairTern | Ternary Crosshairs
GeomDensityTern | Density Estimate (ggtern version)
GeomErrorbarl | Ternary Error Bars
GeomErrorbarr | Ternary Error Bars
GeomErrorbart | Ternary Error Bars
GeomHexTern | Hexbin (ggtern version).
GeomInterpolateTern | Ternary Interpolation
GeomLabelViewport | Draw Label at Relative Position on Viewport
GeomLisoprop | Fixed Value Isoproportion Lines
GeomLline | Fixed Value Lines
GeomLmark | Ternary Crosshairs
GeomMask | Apply Manual Clipping Mask
GeomMeanEllipse | Confidence Interval
GeomPointSwap | Points (Colour and Fill Swapped), as for a scatterplot
GeomPolygonClosed | Closed Polygons
GeomRasterAnnTern | Annotation: High-performance rectangular tiling (ggtern version)
GeomRisoprop | Fixed Value Isoproportion Lines
GeomRline | Fixed Value Lines
GeomRmark | Ternary Crosshairs
GeomSmoothTern | Add a Smoothed Conditional Mean.
GeomTextViewport | Draw Text at Relative Position on Viewport
GeomTisoprop | Fixed Value Isoproportion Lines
GeomTline | Fixed Value Lines
GeomTmark | Ternary Crosshairs
GeomTriTern | Hexbin (ggtern version).
geom_confidence | Confidence Interval
geom_confidence_tern | Confidence Interval
geom_crosshair_tern | Ternary Crosshairs
geom_density_tern | Density Estimate (ggtern version)
geom_errorbarL | Ternary Error Bars
geom_errorbarR | Ternary Error Bars
geom_errorbarT | Ternary Error Bars
geom_errorbarX | Ternary Error Bars
geom_hex_tern | Hexbin (ggtern version).
geom_interpolate_tern | Ternary Interpolation
geom_label_viewport | Draw Label at Relative Position on Viewport
geom_Lisoprop | Fixed Value Isoproportion Lines
geom_Lline | Fixed Value Lines
geom_Lmark | Ternary Crosshairs
geom_mask | Apply Manual Clipping Mask
geom_mean_ellipse | Mean Ellipse
geom_point_swap | Points (Colour and Fill Swapped), as for a scatterplot
geom_polygon_closed | Closed Polygons
geom_Risoprop | Fixed Value Isoproportion Lines
geom_Rline | Fixed Value Lines
geom_Rmark | Ternary Crosshairs
geom_smooth_tern | Add a Smoothed Conditional Mean.
geom_text_viewport | Draw Text at Relative Position on Viewport
geom_Tisoprop | Fixed Value Isoproportion Lines
geom_Tline | Fixed Value Lines
geom_Tmark | Ternary Crosshairs
geom_tri_tern | Tribin (ggtern version).
geom_Xisoprop | Fixed Value Isoproportion Lines
geom_Xline | Fixed Value Lines
getBreaks | Generate Axis Breaks
getLabels | Generate Axis Labels
ggplot | Create a new ggplot plot.
ggplot.default | Create a new ggplot plot.
ggsave | Save a ggplot (or other grid object) with sensible defaults (ggtern version)
ggtern | ggtern Constructor
ggtern-labels | Change Axis labels and legend titles
ggtern.multi | Depreciated Functions
ggtern_labels | Change Axis labels and legend titles
ggtern_labels_arrow_suffix | Atomic, Weight or Custom Percentage Suffix
ggtern_package | Ternary Diagrams in R
ggtern_themes | ggtern themes
grid.arrange | Arrange multiple grobs on a page (ggtern version)
grid.draw.ggplot | Save a ggplot (or other grid object) with sensible defaults (ggtern version)

## -- L --

labels_tern | Generate Axis Labels
label_formatter | 'label_formatter' is a function that formats / parses labels for use in the grid.
Larrowlab | Change Axis labels and legend titles
larrowlab | Change Axis labels and legend titles
limits_tern | Restrict Ternary Limits
limit_tern | Restrict Ternary Limits
Llab | Change Axis labels and legend titles
llab | Change Axis labels and legend titles
Lline | Fixed Value Lines
lline | Fixed Value Lines

## -- M --

mahalanobis_distance | Mahalanobis Distance
multi | Depreciated Functions
multiplot | Depreciated Functions

## -- P --

percent_atomic | Atomic, Weight or Custom Percentage Suffix
percent_custom | Atomic, Weight or Custom Percentage Suffix
percent_weight | Atomic, Weight or Custom Percentage Suffix
plot.ggplot | Create a new ggplot plot.
point.in.sequence | Depreciated Functions
polyclip | Depreciated Functions
PositionJitterTern | Jitter Ternary Points
PositionNudgeTern | Nudge Ternary Points.
position_jitter_tern | Jitter Ternary Points
position_nudge_tern | Nudge Ternary Points.
predictdf2d | Prediction data frame
print.ggplot | Create a new ggplot plot.

## -- R --

Rarrowlab | Change Axis labels and legend titles
rarrowlab | Change Axis labels and legend titles
Rlab | Change Axis labels and legend titles
rlab | Change Axis labels and legend titles
Rline | Fixed Value Lines
rline | Fixed Value Lines

## -- S --

scale_L_continuous | Ternary Position Scales
scale_R_continuous | Ternary Position Scales
scale_T_continuous | Ternary Position Scales
scale_X_continuous | Ternary Position Scales
SkyeLava | Aichisons Skye Lavas
StatConfidenceTern | Confidence Interval
StatDensityTern | Density Estimate (ggtern version)
StatHexTern | Hexbin (ggtern version).
StatInterpolateTern | Ternary Interpolation
StatMeanEllipse | Mean Ellipse
StatSmoothTern | Add a Smoothed Conditional Mean.
StatTriTern | Tribin (ggtern version).
stat_confidence | Confidence Interval
stat_confidence_tern | Confidence Interval
stat_density_tern | Density Estimate (ggtern version)
stat_hex_tern | Hexbin (ggtern version).
stat_interpolate_tern | Ternary Interpolation
stat_mean_ellipse | Mean Ellipse
stat_smooth_tern | Add a Smoothed Conditional Mean.
stat_tri_tern | Tribin (ggtern version).
strip_unapproved | Strip Unapproved Layers

## -- T --

Tarrowlab | Change Axis labels and legend titles
tarrowlab | Change Axis labels and legend titles
ternary_transformation | Ternary / Cartesian Transformation
tern_anticlockwise | Direction of Ternary Rotation
tern_clockwise | Direction of Ternary Rotation
tern_counterclockwise | Direction of Ternary Rotation
tern_limit | Restrict Ternary Limits
tern_limits | Restrict Ternary Limits
tern_stop | Depreciated Functions
theme | Modify components of a theme
theme_anticlockwise | Direction of Ternary Rotation
theme_arrowbaseline | Depreciated Functions
theme_arrowcustomlength | Change the Length of the Ternary Arrows
theme_arrowdefault | Change the Length of the Ternary Arrows
theme_arrowlarge | Change the Length of the Ternary Arrows
theme_arrowlength | Change the Length of the Ternary Arrows
theme_arrowlong | Change the Length of the Ternary Arrows
theme_arrownormal | Change the Length of the Ternary Arrows
theme_arrowshort | Change the Length of the Ternary Arrows
theme_arrowsmall | Change the Length of the Ternary Arrows
theme_bluedark | ggtern themes
theme_bluelight | ggtern themes
theme_bordersonbottom | Render Borders on Top
theme_bordersontop | Render Borders on Top
theme_bvbg | ggtern themes
theme_bvbw | ggtern themes
theme_bw | ggtern themes
theme_classic | ggtern themes
theme_clockwise | Direction of Ternary Rotation
theme_complete | List of Available Themes
theme_convenience | Theme Convenience Functions
theme_convenience_functions | Theme Convenience Functions
theme_counterclockwise | Direction of Ternary Rotation
theme_custom | ggtern themes
theme_dark | ggtern themes
theme_darker | ggtern themes
theme_elements | New Theme Elements
theme_ggtern | ggtern themes
theme_gray | ggtern themes
theme_gridsonbottom | Render Grids on Top
theme_gridsontop | Render Grids on Top
theme_hidearrows | Show or Hide the Ternary Arrows
theme_hidegrid | Show or Hide Grid
theme_hidegrid_major | Show or Hide Grid
theme_hidegrid_minor | Show or Hide Grid
theme_hidelabels | Show or Hide Axis Ticklabels
theme_hidelatex | Parse Labels w Latex Markup
theme_hidemask | Show or Hide the Clipping Mask
theme_hideprimary | Show or Hide the Primary/Secondary Ticks
theme_hidesecondary | Show or Hide the Primary/Secondary Ticks
theme_hideticks | Show or Hide the Primary/Secondary Ticks
theme_hidetitles | Show or Hide the Axis (Apex) Titles
theme_latex | Parse Labels w Latex Markup
theme_legend_position | Position Legend in Convenient Locations
theme_light | ggtern themes
theme_linedraw | ggtern themes
theme_matrix | ggtern themes
theme_mesh | Create Grid Mesh
theme_minimal | ggtern themes
theme_noarrows | Show or Hide the Ternary Arrows
theme_nogrid | Show or Hide Grid
theme_nogrid_major | Show or Hide Grid
theme_nogrid_minor | Show or Hide Grid
theme_nolabels | Show or Hide Axis Ticklabels
theme_nolatex | Parse Labels w Latex Markup
theme_nomask | Show or Hide the Clipping Mask
theme_noprimary | Show or Hide the Primary/Secondary Ticks
theme_nosecondary | Show or Hide the Primary/Secondary Ticks
theme_noticks | Show or Hide the Primary/Secondary Ticks
theme_notitles | Show or Hide the Axis (Apex) Titles
theme_novar_tern | Blank one variable's annotations in ternary plot
theme_rgbg | ggtern themes
theme_rgbw | ggtern themes
theme_rotate | Rotate Ternary Diagram
theme_showarrows | Show or Hide the Ternary Arrows
theme_showgrid | Show or Hide Grid
theme_showgrid_major | Show or Hide Grid
theme_showgrid_minor | Show or Hide Grid
theme_showlabels | Show or Hide Axis Ticklabels
theme_showlatex | Parse Labels w Latex Markup
theme_showmask | Show or Hide the Clipping Mask
theme_showprimary | Show or Hide the Primary/Secondary Ticks
theme_showsecondary | Show or Hide the Primary/Secondary Ticks
theme_showticks | Show or Hide the Primary/Secondary Ticks
theme_showtitles | Show or Hide the Axis (Apex) Titles
theme_tern_nogrid | Show or Hide Grid
theme_tern_nogrid_major | Show or Hide Grid
theme_tern_nogrid_minor | Show or Hide Grid
theme_ticklength | Modify the Ticklengths
theme_ticklength_major | Modify the Ticklengths
theme_ticklength_minor | Modify the Ticklengths
theme_ticksinside | Place Ticks Inside or Outside
theme_ticksoutside | Place Ticks Inside or Outside
theme_tropical | ggtern themes
theme_void | ggtern themes
theme_zoom | Zoom on Plot Region
theme_zoom_center | Zoom on Plot Region
theme_zoom_L | Zoom on Plot Region
theme_zoom_M | Zoom on Plot Region
theme_zoom_R | Zoom on Plot Region
theme_zoom_T | Zoom on Plot Region
theme_zoom_X | Zoom on Plot Region
Tlab | Change Axis labels and legend titles
tlab | Change Axis labels and legend titles
Tline | Fixed Value Lines
tline | Fixed Value Lines
tlr2xy | Ternary / Cartesian Transformation

## -- U --

USDA | USDA Textural Classification Data

## -- W --

weight_percent | Atomic, Weight or Custom Percentage Suffix
WhiteCells | Aichisons White Cells
Wlab | Change Axis labels and legend titles
wlab | Change Axis labels and legend titles

## -- X --

xy2tlr | Ternary / Cartesian Transformation

## -- Z --

zlab | Change Axis labels and legend titles
zzz-depreciated | Depreciated Functions

## -- misc --

.getFunctions | OLD FUNCTIONS new_panel','train_layout','train_position','train_ranges','map_position','map_layout','reset_scales','facet_render', xlabel','ylabel' expand_default', ## REMOVED update_labels','update_guides', ## REMOVED 12 Nov 2025 justify_grobs', ## REMOVED 12 Nov 2025