ggtern
4.0.0An Extension to 'ggplot2', for the Creation of Ternary Diagrams
Overview
Extends the functionality of 'ggplot2', providing the capability to plot ternary diagrams for (subset of) the 'ggplot2' geometries. Additionally, 'ggtern' has implemented several NEW geometries which are unavailable to the standard 'ggplot2' release.
- Fixed broken compatability with ggplot2 4.0.X
- Changed to S& methods where necessasry
- Enforced liniewidth vs size for line-type grobs
- Changed to rel from unit for ticklength theme elements
From NEWS in the release
Install
Health
NOTERd contentsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Rd files without \usage: ‘theme.Rd’ \arguments should not be documented without \usage.
- NOTE11 OK, 2 NOTENow
- NOTE12 OK, 1 NOTE2026-07-11
- OK12 OK, 1 FAILURE2026-06-08
- NOTE12 OK, 1 NOTE2026-06-07
- OK14 OK2026-03-10
Documentation
- Help pages
- 77 (7 internal)includes a package overview page
- Examples that run
- 95%41 run in a plain check · 1 only when donttest examples are enabled (R CMD check --as-cran) · 1 never run
- Exported functions with examples
- 59%
- Documented parameters
- 77%
- Return-value docs
- 15%
- Help pages citing references
- 8%
Also includes 2 demo scripts (run with demo())
Downloads
Dependencies
Installing ggtern adds 29 packages (15 with compiled code, 27 MB of source tarballs). Heaviest: ggplot2 6.0 MB, compositions 2.7 MB, robustbase 2.2 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 4.0.0Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 3.5.02024-03-24 · diff ↗
- unarchivedReturned to CRAN2023-06-06
- 3.4.22023-06-06 · diff ↗
- archivedRemoved from CRAN2023-05-07issues were not corrected in time
- RR 4.3.0 released · 2023-04-21
- 3.4.12022-12-06 · diff ↗
- 3.4.02022-11-19 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 3.3.52021-07-23 · diff ↗
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 3.3.0
Show 27 earlier eventsHide 27 earlier events
- RR 3.6.0 released · 2019-04-26
- 3.1.02018-12-19 · diff ↗
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- archivedRemoved from CRAN2015-03-03misuse of '\donttest' was not corrected
- RR 3.1.0 released · 2014-04-10
- 3.0.3
- 3.0.0.12018-11-06 · diff ↗
- 3.0.02018-08-22 · diff ↗ ·
added 13 exports
GeomHexTern, GeomPolygonClosed, GeomTriTern, StatHexTern, StatTriTern, geom_hex_tern, geom_polygon_closed, geom_tri_tern, stat_hex_tern, stat_tri_tern, theme_ticklength, theme_ticklength_major, theme_ticklength_minor - 2.2.12017-07-17 · diff ↗ ·
added 8 exports
GeomLabelViewport, GeomMeanEllipse, GeomTextViewport, StatMeanEllipse, geom_label_viewport, geom_mean_ellipse, geom_text_viewport, stat_mean_ellipse - 2.2.02016-11-23 · diff ↗ ·
removed 4 exports
layer_grob, layer_scales, theme_get, theme_setadded 22 exports
%+%, GeomMask, breaks_tern, find_global_tern, labels_tern, rgb2hex, theme_arrowlarge, theme_bluedark, theme_bluelight, theme_bvbg, theme_bvbw, theme_hidelatex, theme_latex, theme_matrix, theme_nolatex, theme_showlatex, theme_tropical, theme_zoom_L, theme_zoom_M, theme_zoom_R, theme_zoom_T, theme_zoom_center - 2.1.42016-07-22 · diff ↗ ·
removed 2 exports
is.ggplot, plot_cloneadded 3 exports
getBreaks, getLabels, theme_mesh - 2.1.3
- 2.1.2
- 2.1.12016-03-31 · diff ↗ ·
added 8 exports
GeomPointSwap, GeomRasterAnnTern, annotation_raster_tern, draw_key_point_swap, geom_point_swap, theme_bordersonbottom, theme_bordersontop, theme_gridsonbottom - 2.1.02016-03-18 · diff ↗ ·
removed 1 export
scales_listadded 18 exports
GeomCrosshairTern, GeomLmark, GeomRmark, GeomTmark, draw_key_Liso, draw_key_Lline, draw_key_Lmark, draw_key_Riso, draw_key_Rline, draw_key_Rmark, draw_key_Tiso, draw_key_Tline, draw_key_Tmark, draw_key_crosshair_tern, geom_Lmark, geom_Rmark, geom_Tmark, geom_crosshair_tern - 2.0.12016-01-16 · diff ↗ ·
removed 15 exports
pattern:^[[:alpha:]]+, unit, %+%, %+replace%, arrow, ifthenelse, geom_smooth, geom_polygon_tern, theme_tern_bw, theme_tern_gray, theme_tern_rgbg, theme_tern_rgbw, theme_rgb, theme_arrowlarge, polyclipadded 90 exports
CoordTern, GeomConfidenceTern, GeomDensityTern, GeomErrorbarl, GeomErrorbarr, GeomErrorbart, GeomInterpolateTern, GeomLisoprop, GeomLline, GeomRisoprop, GeomRline, GeomSmoothTern, GeomTisoprop, GeomTline, Larrowlab, Llab, Lline, PositionJitterTern, PositionNudgeTern, Rarrowlab, Rlab, Rline, StatConfidenceTern, StatDensityTern, StatInterpolateTern, StatSmoothTern, Tarrowlab, Tlab, Tline, Wlab and 60 more - 1.0.6.12015-10-12 · diff ↗
- 1.0.6.02015-08-03 · diff ↗ ·
removed 2 exports
stat_density2d, geom_density2dadded 7 exports
stat_density_tern, geom_density_tern, geom_interpolate_tern, stat_interpolate_tern, geom_polygon_tern, theme_novar_tern, polyclip - 1.0.5.02015-04-15 · diff ↗
- 1.0.3.22014-05-31 · diff ↗ ·
added 36 exports
geom_errorbarT, geom_errorbarL, geom_errorbarR, theme_hidearrows, theme_minimal, theme_classic, theme_bw, theme_gray, theme_rgbw, theme_rgbg, theme_rgb, theme_showtitles, theme_hidetitles, theme_notitles, theme_showlabels, theme_hidelabels, theme_nolabels, theme_counterclockwise, theme_anticlockwise, theme_clockwise, theme_showgrid, theme_hidegrid, theme_showgrid_major, theme_showgrid_minor, theme_hidegrid_major, theme_hidegrid_minor, theme_arrowsmall, theme_arrowshort, theme_arrownormal, theme_arrowdefault and 6 more - 1.0.3.12014-01-31 · diff ↗
- 1.0.2.02014-01-04 · diff ↗ ·
removed 11 exports
arrow_label_formatter, calc_element_plot, sink_density, remove_outside, find_global, get_last_coord, get_tern_extremes, trytransform, set_last_coord, strip_unapproved, transform_tern_to_cartadded 13 exports
geom_density2d, geom_confidence, theme_noticks, theme_hideticks, theme_showticks, theme_noprimary, theme_showprimary, theme_hideprimary, theme_nosecondary, theme_showsecondary, theme_hidesecondary, theme_ticksinside, theme_ticksoutside - 1.0.1.32013-12-18
- RR 3.0.0 released · 2013-04-03
Package metadata
- First published
- 2013-12-18
- Total releases
- 26 / 13 yrs
- License
- GPL-2 | file LICENSE OSI
- Minimum R
- ≥ 4.0
- Bundled data
- 68 KB / 6 files
- Download size
- 584 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("ggtern")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.18637/jss.v087.c03.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.