This code sample works fine with ggplot2 3.3.0
ggplot(NULL, aes(x = c(-20, 20))) +
stat_function(fun = function(x) { x**3 },
geom = "line")
But with 3.3.3 generates this error
Error: Aesthetics must be either length 1 or the same as the data (1): x