Initially inspired many years ago when @hadleywickham and @cpsievert were discussing DSLs for plotting: https://twitter.com/cpsievert/status/606190120568365056
1 2 | init_ggplot2_pipes(prefix = "add_",
func_regex = "^(geom_|stat_|coord_|annot|xlim|ylim|theme_|facet_|labs)")
|
prefix |
string with which to prefix names of |
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.