Skip to contents

Draws the boundary of a 2D ternary simplex as an equilateral triangle

Usage

add_ternary_base(...)

Arguments

...

Arguments passed to ggplot2::geom_polygon(), such as colour, fill, linewidth, etc.

Examples

library(ggplot2)

# Basic simplex
ggplot() + add_ternary_base()


# Customize appearance
ggplot() + add_ternary_base(colour = "blue", linewidth = 1.5)