Learn R Programming

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

ggtern (version 1.0.6.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

4,316

Version

1.0.6.0

License

GPL-2

Maintainer

Nicholas Hamilton

Last Published

August 3rd, 2015

Functions in ggtern (1.0.6.0)

zzz-overloaded

Overloaded ggplot2 functions
theme_bw

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

Modified Aesthetic Mappings
enforceTernaryCoordinates

Enforce Coordinates
ggplot_gtable

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

Ternary Coordinate System
mahalanobisDistance

Mahalanobis Distance
ggplot_build

Build ggplot for rendering (MODIFIED for ggtern)
theme_elements

New Theme Elements
logratio

Log-ratio Transformations
theme_complete

Complete Themes
theme_arrowbaseline

Set The Ternary Arrow Baseline
geom_segment

Single line segments (Ternary Version).
undoCartesian

Undo a Ternary Transformation
approved_geometries

Approved Geometries
geom_density_tern

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

Ternary Interpolation
theme_minimal

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

Arrange Multiple Plot Objects
print.ggtern

Draw plot on current graphics device.
expandTern

Determine Ternary Expansion
theme_clockwise

Direction of Ternary Rotation
geom_polygon_tern

Polygon Geometry (Ternary Version)
themearrowlength

Change the Length of the Ternary Arrows
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
geom_confidence

Confidence Interval
theme_showprimary

Show or Hide the Primary/Secondary Ticks
theme_showgrid

Show or Hide Grid
TLRWlab.suffix

Atomic, Weight or Custom Percentage Suffix
theme_custom

Theme with custom basic colours
theme_rgbg

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

USDA Textural Classification Data
theme_showlabels

Show or Hide Axis Ticklabels
ggtern

ggtern Constructor
stat_density_tern

2d density estimation - (ggtern version)
expandRange

Expand a Range of Values
geom_interpolate_tern

Ternary Interpolation
ggtern-package

Ternary Diagrams in R
ggsave

Save a ggplot with sensible defaults (ggtern version)
convenience_functions

Theme Convenience Functions
data

Data Sets
iflasttern

Switch between two values for the ternary system
suppressColours

Suppress Colours
clipPolygons

Clip Polygons
geom_smooth_tern

Add a smoothed conditional mean (MODIFIED)
stat_smooth_tern

Add a smoother. (Ternary Version)
tern_dep

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

Theme element: ternary structure
theme_ticksoutside

Place Ticks Inside or Outside
ternLimitsForCoord

Ternary Limits
theme_classic

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

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

Stop Procedure
data_Feldspar

Elkin and Groves Feldspar Data
kde2d.weighted

Two-Dimentional Kernel Density Estimation (Weighted)
strip_unapproved

Strip Unapproved Layers
point.in.sequence

Put Points in Sequence
ternary_transformations

Ternary Transformations
TLRWlab

Change Axis labels and legend titles
zzz-internal

Internal Functions
geom_errorbarL

Ternary Error Bars
theme_gray

A theme with grey background and white gridlines (ggtern version)
coord_tern.limit_tern

Restrict Ternary Limits
theme_noarrows

Show or Hide the Ternary Arrows
is.linear.ternary

S3 Method Is Linear
Tline

Add constant lines
scale_TLR_continuous

Ternary Continuous Scales
theme_novar_tern

Blank one variable's annotations in ternary plot
theme_showtitles

Show or Hide the Axis (Apex) Titles