labels_tern: Generate Axis Labels

View source: R/utilities.R

labels_ternR Documentation

Generate Axis Labels

Description

Calculates the Labels for Major or Minor Gridlines based on the input limits.

Usage

labels_tern(
  limits = c(0, 1),
  breaks = breaks_tern(limits),
  format = "%g",
  factor = 100
)

Arguments

limits

the scale limits

breaks

numeric denoting the breaks to produce corresponding labels

format

the formatting string to be passed through to the sprintf function

factor

the multiplicative factor

Author(s)

Nicholas Hamilton

Examples

labels_tern()
labels_tern(limits = c(0,.5))

ggtern documentation built on June 7, 2023, 6:33 p.m.