I like to use scale_y_continuous(labels=myformatter)
(with myformatter my custom formatter-function) as default for every ggplot.
So I thought I could redefine the function scale_y_contiunous
:
scale_y_continuous <- function(...) scale_y_continuous(..., labels=formatter)
But I get an error
Error: evaluation nested too deeply: infinite recursion / options(expressions=)?
Error during wrapup: evaluation nested too deeply: infinite recursion / options(expressions=)?
So is there a way to define the default behaviour?