Learn R Programming

simplevis (version 3.0.0)

y_numeric_breaks: Calculate the breaks for a y axis numeric vector.

Description

Calculate the breaks for a y axis numeric vector.

Usage

y_numeric_breaks(y_var_vctr, y_balance = FALSE, y_pretty_n = 5,
  y_trans = "identity", y_zero = TRUE)

Arguments

y_var_vctr

A numeric vector for the y scale from which to determine breaks from.

y_balance

Add balance to the y axis so that zero is in the centre of the y scale.

y_pretty_n

The desired number of intervals on the y axis, as calculated by the pretty algorithm. Defaults to 5.

y_trans

A string specifying a transformation for the y axis scale, such as "log10" or "sqrt". Defaults to "identity".

y_zero

TRUE or FALSE of whether the minimum of the y scale is zero. Defaults to TRUE.

Value

A vector of breaks