Learn R Programming

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

ggtern (version 1.0.1.3)

An extension to ggplot2, for the creation of ternary diagrams.

Description

ggtern is a package that extends the functionality of ggplot2, giving the capability to plot ternary diagrams for (subset of) the ggplot2 proto geometries. For further examples and documentation, please proceed to the ggtern website.

Copy Link

Version

Install

install.packages('ggtern')

Monthly Downloads

3,222

Version

1.0.1.3

License

GPL-2

Maintainer

Nicholas Hamilton

Last Published

December 18th, 2013

Functions in ggtern (1.0.1.3)

coord_tern

Ternary Coordinate System
percent_weight

Atomic, Weight or Custom Percentage Suffix
kde2d.weighted

Two-Dimentional Kernel Density Estimation (Weighted)
ggtern

Ternary Diagrams in R
geom_density2d

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

Theme element: ternary structure
theme_tern_gray

theme_tern_gray ternary theme, gray theme
geom_confidence

Confidence Interval
print.ggplot

Draw plot on current graphics device.
geom_smooth

Add a smoothed conditional mean (MODIFIED)
is.linear.ternary

S3 Method Is Linear
isomLR

Log-ratio Transformations
labsnew

Change Axis labels and legend titles
transform_tern_to_cart

Transform Ternary Coordinates to Cartesian Coordinates
ggplot_build

Build ggplot for rendering (MODIFIED for ggtern)
validate_element

Overloaded ggplot2 functions
tern_limits

Restrict Ternary Limits
Feldspar

Elkin and Groves Feldspar Data
scale_L_continuous

Ternary Continuous Scales
statTLRline

Add constant lines
aes

Modified Aesthetic Mappings
stat_smooth

Add a smoother. (Ternary Version)
strip_unapproved

Strip Unapproved Layers
geom_segment

Single line segments (Ternary Version).
ifthenelse

Internal Function
print.ggtern

Draw plot on current graphics device.
stat_density2d

2d density estimation - (ggtern version)
tern_clockwise

Direction of Ternary Rotation
ggplot_gtable

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

Mahalanobis Distance
themeelements

New Theme Elements