base_mode: Mimic Base R break

View source: R/utils.R

base_modeR Documentation

Mimic Base R break

Description

Mimic Base R break

Usage

base_mode(
  p,
  i = 1,
  smart_label = T,
  x_lab_fun = function(x) {     x },
  y_lab_fun = function(x) {     x },
  n_wrap = 10,
  flip = F,
  ...
)

Arguments

p

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

i

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

smart_label

Regular expression to filter the list of ggplot functions to make pipe-enabled. The default regex will capture all stats and geoms and some other misc stuff.


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