Learn R Programming

ggtern (version 2.1.4)

getBreaks: Generate Axis Breaks and Labels

Description

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

Usage

getBreaks(limits = c(0, 1), isMajor = TRUE, n = 5)
getLabels(limits = c(0, 1), breaks = getBreaks(limits), format = "%g", factor = 100)

Arguments

limits
the scale limits
isMajor
major or minor grids
n
number of breaks
breaks
numeric denoting the breaks
format
the formatting string to be passed through to the sprintf function
factor
the multiplicative factor