powered by
Calculates the Labels for Major or Minor Gridlines based on the input limits.
labels_tern( limits = c(0, 1), breaks = breaks_tern(limits), format = "%g", factor = 100 )
the scale limits
numeric denoting the breaks to produce corresponding labels
the formatting string to be passed through to the sprintf function
sprintf
the multiplicative factor
Nicholas Hamilton
labels_tern() labels_tern(limits = c(0,.5))
Run the code above in your browser using DataLab