The layer function is run, and then the state before the code was run
is restored - this allows layers to be effectively isolated from
the rest of the plot.
Usage
layer_f(vis, fun)
Arguments
vis
The ggvis visualisation to modify.
fun
A function that takes a single argument, the current
visualisation as input, and returns a modified visualisation.