base_breaks: Mimic Base R break

View source: R/utils.R

base_breaksR Documentation

Mimic Base R break

Description

Mimic Base R break

Usage

base_breaks(
  x,
  y,
  scale_x = T,
  scale_y = T,
  x_lab_fun = function(x) {     x },
  y_lab_fun = function(x) {     x },
  n_wrap = 10,
  outlier = 0.05,
  expand_x_conti = c(0.05, 0),
  expand_y_conti = c(0.05, 0),
  expand_x_disc = c(0, 0.6),
  expand_y_disc = c(0, 0.6)
)

Arguments

x

string with which to prefix names of ggplot2 functions in order to name the pipe-enabled functions. default: "add_". Note: You could set this the empty string, in which case the new functions would mask the name of the library function

y

func_regex Regular expression to filter the list of ggplot functions to make pipe-enabled. The default regex will capture all


albert-ying/ggRetro documentation built on April 7, 2024, 1:20 p.m.