Learn R Programming

ggtern (version 3.5.0)

labels_tern: 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

Nicholas Hamilton

Examples

Run this code
labels_tern()
labels_tern(limits = c(0,.5))

Run the code above in your browser using DataLab