Learn R Programming

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

ggtern (version 1.0.2.0)

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,050

Version

1.0.2.0

License

GPL-2

Maintainer

Nicholas Hamilton

Last Published

January 4th, 2014

Functions in ggtern (1.0.2.0)

coord_tern

Ternary Coordinate System
labels

Change Axis labels and legend titles
logratio

Log-ratio Transformations
kde2d.weighted

Two-Dimentional Kernel Density Estimation (Weighted)
geom_segment

Single line segments (Ternary Version).
tern_clockwise

Direction of Ternary Rotation
internal

Internal Functions
stat_smooth

Add a smoother. (Ternary Version)
theme_rgbw

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

Restrict Ternary Limits
geom_smooth

Add a smoothed conditional mean (MODIFIED)
themeelements

New Theme Elements
print.ggtern

Draw plot on current graphics device.
theme_rgbg

A theme with grey background, red, green and blue axes and white gridlines
constant-line

Add constant lines
geom_confidence

Confidence Interval
ternary_transformations

Ternary Transformations
ggtern

Ternary Diagrams in R
tern_dep

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

Draw plot on current graphics device.
aes

Modified Aesthetic Mappings
element_ternary

Theme element: ternary structure
geom_density2d

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

Place Ticks Inside or Outside
ggplot_build

Build ggplot for rendering (MODIFIED for ggtern)
overloaded

Overloaded ggplot2 functions
theme_bw

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

2d density estimation - (ggtern version)
mahalanobisDistance

Mahalanobis Distance
strip_unapproved

Strip Unapproved Layers
theme_gray

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

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

Show or Hide the Ternary Arrows
theme_nogrid_minor

Show or Hide Grid
convenience-ticks

Show or Hide the Primary/Secondary Ticks
tern_stop

Stop Procedure
ternaryscales

Ternary Continuous Scales
is.linear.ternary

S3 Method Is Linear
Feldspar

Elkin and Groves Feldspar Data
convenience

Theme Convenience Functions
percent_weight

Atomic, Weight or Custom Percentage Suffix