init_ggplot2_pipes: Create pipe-enabled ggplot2 functions

Description Usage Arguments

Description

Initially inspired many years ago when @hadleywickham and @cpsievert were discussing DSLs for plotting: https://twitter.com/cpsievert/status/606190120568365056

Usage

1
2
init_ggplot2_pipes(prefix = "add_",
  func_regex = "^(geom_|stat_|coord_|annot|xlim|ylim|theme_|facet_|labs)")

Arguments

prefix

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

func_regex

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.


coolbutuseless/ggplot2pipes documentation built on May 14, 2019, 6:09 a.m.