powered by
This function plots the axis
xkcdaxis(xrange, yrange, ...)
The range of the X axe.
The range of the Y axe.
Other arguments.
A layer with the axis.
It plots the axis of the graph.
# NOT RUN { xrange <- range(mtcars$mpg) yrange <- range(mtcars$wt) p <- ggplot() + geom_point(aes(mpg, wt), data=mtcars) + xkcdaxis(xrange,yrange) p # }
Run the code above in your browser using DataLab