Learn R Programming

simplevis (version 3.0.0)

x_numeric_breaks: Calculate the breaks for a x axis numeric vector.

Description

Calculate the breaks for a x axis numeric vector.

Usage

x_numeric_breaks(x_var_vctr, x_balance = FALSE, x_pretty_n = 6,
  x_trans = "identity", x_zero = TRUE, mobile = FALSE)

Arguments

x_var_vctr

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

x_balance

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

x_pretty_n

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

x_trans

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

x_zero

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

mobile

Whether the plot is to be displayed on a mobile device. Defaults to FALSE. If within an app with the mobileDetect function, then use mobile = input$mobile.

Value

A vector of breaks