Learn R Programming

simplevis (version 4.4.0)

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

Description

Calculate the breaks for a y axis numeric vector.

Usage

sv_numeric_breaks_v(var_vctr, balance = FALSE, pretty_n = 5,
  trans = "identity", zero = TRUE)

Arguments

var_vctr

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

balance

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

pretty_n

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

trans

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

zero

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

mobile

Whether the plot is to be displayed on a mobile device. Defaults to NULL.

Value

A vector of breaks