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

Examples

labels_tern()
[1] "" "20" "40" "60" "80" "100"
labels_tern(limits = c(0,.5))
[1] "" "10" "20" "30" "40" "50"