change `set_scales` to `set` or `scale`, `add_layer` to `add` or `layer`
The power of libraries such as dplyr and tidyr is partially due to the fact that it relies on a set of simple, one-word verbs. As such, it will be really convenient if pipeplotter can also provide its functionality through single-word verbs. So, instead of set_scales, how about simply use the verb set or perhaps more specifically, scale (although I'm not sure it makes sense in context)? Similarly for add_layer, how about simply add or layer?
In general, the verbs making of plots can be broken down to: plot, add (layer?), transform, set (scale? map?), style, annotate, and facet.
I generally like this idea and will let it float around on twitter to see how it is perceived.
I would personally think:
-
addfor adding layers -
scalefor adding scales -
stylefor theming (had that in mind myself -
annotatefor annotations
coordinate systems and facets are special in that they only get applied once to a plot, whereas the others are accumulative to some extend. Further "facet" is not a verb no matter how much it sound like it after years of ggplot2 use :-)