Learn R Programming

simplevis (version 6.2.0)

sv_numeric_breaks_h: Calculate the breaks for a horizontal axis numeric vector.

Description

Calculate the breaks for a horizontal axis numeric vector.

Usage

sv_numeric_breaks_h(
  var_vctr,
  balance = FALSE,
  breaks_n = 6,
  zero = TRUE,
  mobile = FALSE
)

Arguments

var_vctr

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

balance

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

breaks_n

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

zero

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

mobile

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

Value

A vector of breaks