Well if you try to pass a function through aesthetics <code>stat_function(aes(fun=fun))</code> you'll now get a not callable exception because the aesthetics will pass a list of functions through <code>layer['fun']</code>. Not sure if this is what you're getting at.