add_ternary_grid: Add a ternary grid layer

View source: R/ternary_diagram.R

add_ternary_gridR Documentation

Add a ternary grid layer

Description

Add a ternary grid layer

Usage

add_ternary_grid(p, ticks = seq(0.1, 0.9, 0.1), n = 300, eps = 1e-06, ...)

Arguments

p

A ggplot2 object created by ternary_plot().

ticks

Numeric vector of grid levels.

n

Number of sampled points per grid line.

eps

Small positive offset used before log-ratio transformation.

...

Further arguments passed to ggplot2::geom_path().

Value

A ggplot2 object.


coda.plot documentation built on April 12, 2026, 9:06 a.m.