Consider the following plot:
ggplot(data.frame(x=c(-3, +3)), aes(x)) +
stat_function(fun=function(x) 4*x^(1/2)) +
stat_function(fun=function(x) x^2)
I would like to add an axis to the current plot. With the standard graphics
package, one uses axis()
Is it possible to reproduce axis()
in ggplot2?