Learn R Programming

⚠️There's a newer version (3.5.0) of this package.Take me there.

ggtern (version 1.0.5.0)

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

Description

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. For further examples and documentation, please proceed to the ggtern website.

Copy Link

Version

Install

install.packages('ggtern')

Monthly Downloads

2,719

Version

1.0.5.0

License

GPL-2

Last Published

April 15th, 2015

Functions in ggtern (1.0.5.0)

data

Data Sets
ggtern-package

Ternary Diagrams in R
aes

Modified Aesthetic Mappings
coord_tern

Ternary Coordinate System
theme_arrowbaseline

Set The Ternary Arrow Baseline
point.in.sequence

Put Points in Sequence
Tline

Add constant lines
ggtern.multi

Arrange Multiple Plot Objects
themearrowlength

Change the Length of the Ternary Arrows
ggplot_build

Build ggplot for rendering (MODIFIED for ggtern)
theme_ticksoutside

Place Ticks Inside or Outside
mahalanobisDistance

Mahalanobis Distance
theme_bw

A theme with white background and black gridlines (ggtern version)
ggplot_gtable

Build a plot with all the usual bits and pieces.
theme_classic

A classic-looking theme, with x and y axis lines and no gridlines (ggtern version).
zzz-overloaded

Overloaded ggplot2 functions
ggsave

Save a ggplot with sensible defaults (ggtern version)
theme_elements

New Theme Elements
theme_complete

Complete Themes
geom_segment

Single line segments (Ternary Version).
tern_stop

Stop Procedure
geom_errorbarL

Ternary Error Bars
theme_rgbw

#' A theme with white background, red, green and blue axes and gidlines
theme_custom

Theme with custom basic colours
print.ggtern

Draw plot on current graphics device.
convenience_functions

Theme Convenience Functions
ternary_transformations

Ternary Transformations
geom_confidence

Confidence Interval
data_Feldspar

Elkin and Groves Feldspar Data
theme_clockwise

Direction of Ternary Rotation
geom_smooth

Add a smoothed conditional mean (MODIFIED)
theme_showlabels

Show or Hide Axis Ticklabels
tern_dep

Give a deprecation error, warning, or messsage, depending on version number (ggtern version)
ggtern

ggtern Constructor
iflasttern

Switch between two values for the ternary system
zzz-internal

Internal Functions
stat_density2d

2d density estimation - (ggtern version)
TLRWlab.suffix

Atomic, Weight or Custom Percentage Suffix
geom_density2d

Contours from a 2d density estimate - (ggtern version)
theme_showprimary

Show or Hide the Primary/Secondary Ticks
element_ternary

Theme element: ternary structure
theme_showgrid

Show or Hide Grid
theme_gray

A theme with grey background and white gridlines (ggtern version)
is.linear.ternary

S3 Method Is Linear
theme_noarrows

Show or Hide the Ternary Arrows
stat_smooth

Add a smoother. (Ternary Version)
coord_tern.limit_tern

Restrict Ternary Limits
logratio

Log-ratio Transformations
notransform

notransform is an internal function that permits the input argument (evaluate) to be executed with temporary disabling of ternary transformations, existing state is restored
kde2d.weighted

Two-Dimentional Kernel Density Estimation (Weighted)
strip_unapproved

Strip Unapproved Layers
theme_rgbg

A theme with grey background, red, green and blue axes and white gridlines
approved_geometries

Approved Geometries
scale_TLR_continuous

Ternary Continuous Scales
theme_showtitles

Show or Hide the Axis (Apex) Titles
theme_minimal

A minimalistic theme with no background annotations (ggtern version).
data_USDA

USDA Textural Classification Data
TLRWlab

Change Axis labels and legend titles